public void Start() { manager = GameObject.Find("GameManager").GetComponent<ZachGameManager>(); if(manager == null){ Debug.Log ("MANAGER FAIL"); } }
public void Start() { manager = GameObject.Find("GameManager").GetComponent <ZachGameManager>(); if (manager == null) { Debug.Log("MANAGER FAIL"); } }
// Use this for initialization void Start() { gameManagerGO = GameObject.FindGameObjectWithTag("GameController"); zgm = gameManagerGO.GetComponent <ZachGameManager>(); nearbyVillagers = new List <GameObject> (); height = 2.5f; velocity = 5; rotVelocity = 1; }
// Use this for initialization void Start() { gameManagerGO = GameObject.FindGameObjectWithTag ("GameController"); zgm = gameManagerGO.GetComponent<ZachGameManager>(); height = 5.0f; hasTarget = false; velocity = 15; rotVelocity = .6f; }
// Use this for initialization void Start() { gameManagerGO = GameObject.FindGameObjectWithTag("GameController"); zgm = gameManagerGO.GetComponent <ZachGameManager>(); height = 5.0f; hasTarget = false; velocity = 15; rotVelocity = .6f; }
// Use this for initialization void Start() { gameManagerGO = GameObject.FindGameObjectWithTag ("GameController"); zgm = gameManagerGO.GetComponent<ZachGameManager>(); nearbyVillagers = new List<GameObject> (); height = 2.5f; velocity = 5; rotVelocity = 1; }
void Start() { Cursor.lockState = CursorLockMode.Locked; zachGameManager = GetComponent <ZachGameManager>(); }