Ejemplo n.º 1
0
 void Start()
 {
     gameController = GetComponentInParent <GameController> ();
     spriteMan = GetComponentInChildren <SpriteManager> ();
     // Set a random costume and mark the character clothed
     spriteMan.SetSprite (Enums.RandomCostume ());
     isNaked = false;
     // Ask the character what costume it's wearing and store
     myCostume = spriteMan.MyCostume ();
     isActive = true;
 }