Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     score         = PlayerPrefs.GetInt("score");
     playerCastle  = GetComponent <PlayerCastle>();
     playerDisplay = GetComponent <PlayerDisplay>();
     finalKey.SetActive(false);
     plus15GO.SetActive(false);
     minus10GO.SetActive(false);
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        playerCastle = FindObjectOfType <PlayerCastle>();

        Pathfinder pathfinder = UnityEngine.GameObject.Find("World").GetComponent <Pathfinder>();

        enemyPath = pathfinder.GetPath();

        StartCoroutine(MoveEnemy(enemyPath));
    }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     score         = PlayerPrefs.GetInt("score");
     playerCastle  = GetComponent <PlayerCastle>();
     playerDisplay = GetComponent <PlayerDisplay>();
 }