Property | Type | Description | |
---|---|---|---|
FoodParent | Transform | ||
MaxVelocity | Vector2 | ||
MinVelocity | Vector2 | ||
foodImages | Sprite[] | ||
foodItemVelocities | Vector2[] | ||
foodItems | GameObject[] |
Method | Description | |
---|---|---|
Start ( ) : void | ||
Update ( ) : void | ||
createFoodItem ( ) : GameObject | ||
getRandomImage ( ) : Sprite | ||
getRandomVelocity ( ) : Vector2 | ||
instanciateNewFood ( int index ) : void | ||
outsideScreen ( int index ) : bool | ||
updateFoodPosition ( int index ) : void |
public instanciateNewFood ( int index ) : void | ||
index | int | |
return | void |
public updateFoodPosition ( int index ) : void | ||
index | int | |
return | void |