void Start() { mv = GetComponent <MovePointer>(); sc = GetComponent <SelectControl>(); ft = new FollowTarget[5]; for (int i = 0; i < 5; i++) { ft[i] = fish[i].GetComponent <FollowTarget>(); } }
void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(this.gameObject); } DontDestroyOnLoad(this.gameObject); }
void Start() { mv = GetComponent <MovePointer>(); }