public void SetTriggerControl(TriggerControl control) { m_Control = control; }
private void Awake() { PlayerMaterial = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <TriggerControl>(); ConditionDisplay = gameObject.GetComponent <Text>(); }
// Use this for initialization void Start() { GameScript = FindObjectOfType <GameController>(); Player = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <TriggerControl>(); }