프로퍼티 | 타입 | 설명 | |
---|---|---|---|
FoodParent | Transform | ||
MaxVelocity | Vector2 | ||
MinVelocity | Vector2 | ||
foodImages | Sprite[] | ||
foodItemVelocities | Vector2[] | ||
foodItems | GameObject[] |
메소드 | 설명 | |
---|---|---|
Start ( ) : void | ||
Update ( ) : void | ||
createFoodItem ( ) : GameObject | ||
getRandomImage ( ) : Sprite | ||
getRandomVelocity ( ) : Vector2 | ||
instanciateNewFood ( int index ) : void | ||
outsideScreen ( int index ) : bool | ||
updateFoodPosition ( int index ) : void |