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