C# Class FallingFoodManager, CSE110M240T10

Inheritance: MonoBehaviour
Mostrar archivo Open project: ucsdCSE110wi16/CSE110M240T10

Public Properties

Property Type Description
FoodParent Transform
MaxVelocity Vector2
MinVelocity Vector2
foodImages Sprite[]
foodItemVelocities Vector2[]
foodItems GameObject[]

Public Methods

Method Description
Start ( ) : void
Update ( ) : void
createFoodItem ( ) : GameObject
getRandomImage ( ) : Sprite
getRandomVelocity ( ) : Vector2
instanciateNewFood ( int index ) : void
outsideScreen ( int index ) : bool
updateFoodPosition ( int index ) : void

Method Details

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

createFoodItem() public method

public createFoodItem ( ) : GameObject
return GameObject

getRandomImage() public method

public getRandomImage ( ) : Sprite
return Sprite

getRandomVelocity() public method

public getRandomVelocity ( ) : Vector2
return Vector2

instanciateNewFood() public method

public instanciateNewFood ( int index ) : void
index int
return void

outsideScreen() public method

public outsideScreen ( int index ) : bool
index int
return bool

updateFoodPosition() public method

public updateFoodPosition ( int index ) : void
index int
return void

Property Details

FoodParent public_oe property

public Transform FoodParent
return Transform

MaxVelocity public_oe static_oe property

public static Vector2 MaxVelocity
return Vector2

MinVelocity public_oe static_oe property

public static Vector2 MinVelocity
return Vector2

foodImages public_oe property

public Sprite[] foodImages
return Sprite[]

foodItemVelocities public_oe property

public Vector2[] foodItemVelocities
return Vector2[]

foodItems public_oe property

public GameObject[] foodItems
return GameObject[]