C# Class TextureTranslator, PaperCowboys

This component will make the attached renderer's material's texture transform translate over time. In this project, it is used to make the train tracks move quickly to give the illusion the players are riding fast.
Inheritance: MonoBehaviour
显示文件 Open project: Gamieon/PaperCowboys

Public Properties

Property Type Description
velocity Vector2

Public Methods

Method Description
Awake ( ) : void
Update ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

velocity public_oe property

The velocity of which to translate the texture.
public Vector2 velocity
return Vector2