Example #1
0
        public override void ReportCentralStimulusDied(CentralStimulus central)
        {
            if (central != centralStimulus)
            {
                Debug.LogError($"{central} stimulus is not the central one, don't care if it died!");
                return;
            }

            Debug.Log($"Only {centralStimulus} has finished");
            StartWithStimulus();
        }
Example #2
0
        public override void ReportCentralStimulusDied(CentralStimulus central)
        {
            if (central != centralStimulus)
            {
                Debug.LogError($"{central} stimulus is not the central one, don't care if it died!");
                return;
            }

            Debug.Log($"{centralStimulus} has finished");
            Destroy(centralStimulus.gameObject);
            centralStimulus = null;
            waitingTime     = Times.PauseTime;
        }
Example #3
0
 private void StartWithCentralStimulus()
 {
     centralStimulus = NewCentralStimulus();
     centralStimulus.StartSimulating(this, Times.CentralTime);
 }
Example #4
0
 public abstract void ReportCentralStimulusDied(CentralStimulus central);