8,290
edits
m (Clarify when this can be used.) |
m (Updated example) |
||
Line 22: | Line 22: | ||
public void mutate(GameObject player) | public void mutate(GameObject player) | ||
{ | { | ||
// modify the player object | // modify the player object when a New Game begins | ||
// for example, add a custom part to the player: | |||
player.AddPart<MyCustomPart>(); | |||
} | } | ||
} | } |