Пример #1
0
    public void SetActualCycleWaitTime(float time)
    {
        GameObjectCycle gOCycle = gOCycles[actualPlaceNo];

        gOCycle.spaceBarWaitTime = time;
        SetGOCycleByPlace(gOCycle, actualPlaceNo);
    }
Пример #2
0
 public Cycle(GameObjectCycle gOCycle)
 {
     this.occurence             = gOCycle.occurence.GetComponent <Occurence>();
     this.positiveGratification = gOCycle.positiveGratification.GetComponent <Gratification>();
     this.negativeGratification = gOCycle.negativeGratification.GetComponent <Gratification>();
     this.culmination           = gOCycle.culmination.GetComponent <Culmination>();
 }
Пример #3
0
    void PlayOccurenceAtMyPlace()
    {
        actualCycle = gOCycles[actualPlaceNo];

        GameObject occurence = Instantiate(actualCycle.occurence);

        occurence.GetComponent <Occurence>().Play();
    }
Пример #4
0
 public void SetGOCycleByPlace(GameObjectCycle gOCycle, int place)
 {
     gOCycles[place] = gOCycle;
     if (place == actualPlaceNo)
     {
         actualCycle = gOCycle;
     }
 }