Exemple #1
0
    void Start()
    {
        player = GameObject.FindGameObjectWithTag("Player").GetComponent <MovementControler>();

        spawnPoints = GameObject.FindGameObjectsWithTag("SpawnPoints");

        for (int i = 0; i < spawnPoints.Length; i++)
        {
            PlayerPrefs.GetInt("SpawnPoint" + i, 0);
        }

        tower = GameObject.FindGameObjectWithTag("Tower");

        random = new System.Random();
    }
 private void Start()
 {
     _playerMovement = GetComponent <MovementControler>();
 }
Exemple #3
0
 // Use this for initialization
 void Start()
 {
     instance   = this;
     Controller = transform.GetComponent <CharacterController> ();
 }