Пример #1
0
 public void SetCollection(InteractionCollection newCollection)
 {
     Interactions         = newCollection;
     interactionsQuantity = 0;
     for (int i = 0; i < Interactions.Interactions.Length; i++)
     {
         if (Interactions.Interactions[i].InteractionName != "null")
         {
             interactionsQuantity++;
         }
     }
 }
Пример #2
0
 protected override void SingletonAwake()
 {
     base.SingletonAwake();
     Interactions = new InteractionCollection();
     Interactions.Interactions = new Interaction[interactionsLimit];
     for (int i = 0; i < Interactions.Interactions.Length; i++)
     {
         Interactions.Interactions[i] = new Interaction();
         Interactions.Interactions[i].InteractionName = "null";
     }
     interactionsQuantity = 0;
     DontDestroyOnLoad(gameObject);
 }