Example #1
0
 void Awake()
 {
     if (Instance != null)
     {
         throw new Exception("Singleton instance already exists");
     }
     Instance = this;
     subjectiveTime = GetComponent<SubjectiveTime>();
 }
Example #2
0
 void Awake()
 {
     body = GetComponent<SimpleBody>();
     time = GetComponent<SubjectiveTime>();
 }
 void Awake()
 {
     subjectiveTime = GetComponent<SubjectiveTime>();
 }