private void Awake()
 {
     if (Current != null && Current != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         Current = this;
         DontDestroyOnLoad(gameObject);
     }
 }
Beispiel #2
0
 void OnEnable()
 {
     //	GetChild();
     myObj = target as TimelineSystem;
 }