Example #1
0
 public void SetTriggerControl(TriggerControl control)
 {
     m_Control = control;
 }
    private void Awake()
    {
        PlayerMaterial = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <TriggerControl>();

        ConditionDisplay = gameObject.GetComponent <Text>();
    }
Example #3
0
 // Use this for initialization
 void Start()
 {
     GameScript = FindObjectOfType <GameController>();
     Player     = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <TriggerControl>();
 }