void Start() { mAnimator = GetComponent<Animator>(); mAudioSource = GetComponent<AudioSource>(); this.embarrassmentMeter = GameObject.Find("EmbarassmentMeter").GetComponent<EmbarrassmentMeter>(); playerStats = GameObject.Find("PlayerStats").GetComponent<PlayerStats>(); this.cooldownTimer = this.allowCooldownTime; this.enemyList = GameObject.FindGameObjectsWithTag("Enemy"); this.enemyScript = this.enemyList[0].GetComponent<BaseEnemy>(); AlarmSound = (AudioSource)GameObject.Find("AlarmSound").GetComponent<AudioSource>(); this.playerReskinScript = this.GetComponent<PlayerReskin>(); ewwManager = GameObject.Find ("EwwManager").GetComponent<EwwManager>(); this.headsUpDisplayScript = GameObject.Find("HeadsUpDisplay").GetComponent<HeadsUpDisplay>(); //this.actionButtonE = GameObject.Find("ActionButtonE"); }
void Awake() { this.embarassmentMeter = GameObject.Find("EmbarassmentMeter").GetComponent<EmbarrassmentMeter>(); }