private void Start() { fpManager = GetComponentInParent <FightingPhaseManager>(); ennemyColor = GetComponentInChildren <EnnemyViewCrystalSpawner>(); roomColor = GameObject.Find("Lever").GetComponent <LeverTrigger>(); bonusGiven = true; }
private void Start() { roomColor = GetComponentInParent <LeverTrigger>(); itemCharge = GameObject.Find("Perso").GetComponent <ItemCharge>(); activeItem = GameObject.Find("DetectionZone").GetComponent <ItemDetection>(); detectPlayer = GameObject.Find("EnnemisDetection").GetComponent <YT_RoomTransition>(); hiveMind = false; }
public void showText() { GUI.Label (new Rect (Screen.width/2,Screen.height/2,100,50), "This is the text string for a Label Control"); leverTrigger = GameObject.Find("Player").GetComponent<LeverTrigger>(); if (leverTrigger == null) { leverTrigger = GameObject.Find("Player").GetComponent<LeverTrigger>(); } }
void OnTriggerB() { Debug.Log("Lever Trigger B"); lastTrigger = LeverTrigger.B; if (leverListener == null) { Debug.LogWarning("leverListener not set!"); } leverListener.SendMessage("OnLeverTriggerB", SendMessageOptions.DontRequireReceiver); }
// Start is called before the first frame update void Start() { m_trigger = this.GetComponent <LeverTrigger>(); }
// Start is called before the first frame update void Start() { //_leverTrigger = GameObject.Find("Lever").GetComponent<LeverTrigger>(); _leverTrigger = GameObject.Find("Ground_Switch").GetComponent <LeverTrigger>(); _anim = GetComponent <Animator>(); }
// Use this for initialization void Awake() { leverTrigger = GameObject.Find("Player").GetComponent<LeverTrigger>(); }