//PlayerController playerController; // Use this for initialization void Start() { currentFear = 0; inFearZone = false; inSafeZone = false; InvokeRepeating("FearTicker", 0f, fearTickTime); //playerController = GetComponent<PlayerController>(); //dialController = FindObjectOfType<DialScript>(); dialController = DialScript.dialScript; }
private void Awake() { if (dialScript == null) { dialScript = this; } else if (dialScript != null) { Destroy(gameObject); } }
// Start is called before the first frame update void Start() { m_dsDialScript = m_goDial.GetComponent <DialScript>(); }