Beispiel #1
0
    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>();
        }
    }
Beispiel #2
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(this.gameObject);
        }

        DontDestroyOnLoad(this.gameObject);
    }
Beispiel #3
0
 void Start()
 {
     mv = GetComponent <MovePointer>();
 }