Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     generators = generatorsParent.GetComponentsInChildren <Generator>();
     if (Settings.instance.playerType == Settings.PlayerType.Cat)
     {
         me    = Generator.Owner.Cats;
         enemy = Generator.Owner.Llamas;
     }
     else
     {
         me    = Generator.Owner.Llamas;
         enemy = Generator.Owner.Cats;
     }
 }
Esempio n. 2
0
    void Start()
    {
        if (Settings.instance.playerType == Settings.PlayerType.Cat)
        {
            me    = Generator.Owner.Cats;
            enemy = Generator.Owner.Llamas;
        }
        else
        {
            me    = Generator.Owner.Llamas;
            enemy = Generator.Owner.Cats;
        }
        selection   = new Vector3[2];
        selectionWS = new Vector3[2];
        selector.SetActive(false);
        generators = generatorsParent.GetComponentsInChildren <Generator>();

        resetConfiguration();
    }