public void SetActualCycleWaitTime(float time) { GameObjectCycle gOCycle = gOCycles[actualPlaceNo]; gOCycle.spaceBarWaitTime = time; SetGOCycleByPlace(gOCycle, actualPlaceNo); }
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>(); }
void PlayOccurenceAtMyPlace() { actualCycle = gOCycles[actualPlaceNo]; GameObject occurence = Instantiate(actualCycle.occurence); occurence.GetComponent <Occurence>().Play(); }
public void SetGOCycleByPlace(GameObjectCycle gOCycle, int place) { gOCycles[place] = gOCycle; if (place == actualPlaceNo) { actualCycle = gOCycle; } }