Class FoodBiteSequence
Defines custom eating sequence for food items Due to virtual/abstract design can support lots of derived variations
Namespace: Global
Assembly: cs.temp.dll.dll
Syntax
public abstract class FoodBiteSequence : ScriptableObject
Methods
GetCurrentBitePiece(GameObject[])
Gets first valid food piece. Can be used to put that piece on utensils or so. Implementation can vary on different sequence setup
Declaration
public abstract GameObject GetCurrentBitePiece(GameObject[] parts)
Parameters
Type | Name | Description |
---|---|---|
GameObject[] | parts |
Returns
Type | Description |
---|---|
GameObject |
ProcessBiteAtIndex(GameObject[], Int32)
Should contain individual part prep code when iteration started (before parts actual switch sequence)
Declaration
public abstract void ProcessBiteAtIndex(GameObject[] parts, int index)
Parameters
Type | Name | Description |
---|---|---|
GameObject[] | parts | |
System.Int32 | index |