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