Esempio n. 1
0
 void Spriter()
 {
     ActiveEnemy2Sprite = Random.Range(0, 9);
     if (GameMasterScriptRef.GetWindowOccupied(ActiveEnemy2Sprite) || EnemyRef.GetComponent <EnemyMovement>().ActiveEnemySprite == ActiveEnemy2Sprite || WomanRef.GetComponent <WomanMovement>().ActiveWomanSprite == ActiveEnemy2Sprite)
     {
         ActiveEnemy2Sprite = 1;
         Enemy2Sprites[ActiveEnemy2Sprite].SetActive(false);
     }
     else
     {
         for (int i = 0; i < Enemy2Sprites.Length; i++)
         {
             if (ActiveEnemy2Sprite == i)
             {
                 Enemy2Sprites[i].SetActive(true);
                 GameMasterScriptRef.SetWindowOccupied(i);
                 if (!ThrowingObject)
                 {
                     ThrowObject(1);
                 }
             }
         }
     }
 }