C# Class IngredientsManager, CSE110M240T10

Afficher le fichier Open project: ucsdCSE110wi16/CSE110M240T10 Class Usage Examples

Méthodes publiques

Свойство Type Description
ingredients List
ingredientsChanged bool
myIngredientsGrid GameObject
rt UnityEngine.RectTransform
selectedIngredients List
trashMode bool
trashedIngredients List

Méthodes publiques

Méthode Description
IngredientsManager ( ) : UnityEngine
IngredientsManager ( GameObject myGrid ) : UnityEngine
IngredientsManager ( bool init ) : UnityEngine
addIngredient ( ingredient ingred ) : void
beginTrashMode ( ) : void
deselectIngredient ( ingredient ing ) : void
endTrashMode ( ) : void
ensureInitialized ( ) : bool
hasIngredient ( ingredient ingredient ) : bool
initialize ( ) : void
removeIngredient ( ingredient ing ) : bool
saveIngredients ( ) : void
selectAll ( ) : void
selectIngredient ( ingredient ing ) : void
unselectAll ( ) : void
updateSelected ( bool select = true ) : void

Private Methods

Méthode Description
newButton ( ingredient ing ) : void

Method Details

IngredientsManager() public méthode

public IngredientsManager ( ) : UnityEngine
Résultat UnityEngine

IngredientsManager() public méthode

public IngredientsManager ( GameObject myGrid ) : UnityEngine
myGrid GameObject
Résultat UnityEngine

IngredientsManager() public méthode

public IngredientsManager ( bool init ) : UnityEngine
init bool
Résultat UnityEngine

addIngredient() public méthode

public addIngredient ( ingredient ingred ) : void
ingred ingredient
Résultat void

beginTrashMode() public méthode

public beginTrashMode ( ) : void
Résultat void

deselectIngredient() public méthode

public deselectIngredient ( ingredient ing ) : void
ing ingredient
Résultat void

endTrashMode() public méthode

public endTrashMode ( ) : void
Résultat void

ensureInitialized() public méthode

public ensureInitialized ( ) : bool
Résultat bool

hasIngredient() public méthode

public hasIngredient ( ingredient ingredient ) : bool
ingredient ingredient
Résultat bool

initialize() public méthode

public initialize ( ) : void
Résultat void

removeIngredient() public méthode

public removeIngredient ( ingredient ing ) : bool
ing ingredient
Résultat bool

saveIngredients() public méthode

public saveIngredients ( ) : void
Résultat void

selectAll() public méthode

public selectAll ( ) : void
Résultat void

selectIngredient() public méthode

public selectIngredient ( ingredient ing ) : void
ing ingredient
Résultat void

unselectAll() public méthode

public unselectAll ( ) : void
Résultat void

updateSelected() public méthode

public updateSelected ( bool select = true ) : void
select bool
Résultat void

Property Details

ingredients public_oe property

public List ingredients
Résultat List

ingredientsChanged public_oe property

public bool ingredientsChanged
Résultat bool

myIngredientsGrid public_oe property

public GameObject myIngredientsGrid
Résultat GameObject

rt public_oe property

public RectTransform,UnityEngine rt
Résultat UnityEngine.RectTransform

selectedIngredients public_oe property

public List selectedIngredients
Résultat List

trashMode public_oe property

public bool trashMode
Résultat bool

trashedIngredients public_oe property

public List trashedIngredients
Résultat List