void OnMouseOver() { if (Input.GetMouseButtonDown(0)) { EnvironmentScript.setHumanMarked(this.gameObject); } }
protected override void Die() { base.Die(); anim.SetTrigger("death"); EnvironmentScript.OneLessHuman(); StartCoroutine(Zombify()); }
void OnMouseOver() { if (Input.GetMouseButtonDown(0)) { EnvironmentScript.showSelectedTargets(this.gameObject, target); walkScript.SeekTarget(target); } }
private void HandleEnvironmentInit() { script = GameObject.Find("Environment").GetComponent<EnvironmentScript>(); script.CallbackUpdate = OnUpdate; script.MainLightScript.CallbackConvertingEnds = OnConvertingEnds; proxy.IsNight = false; timer = 0; duration = GlobalConfig.EnvironmentConfig.DayDuration; }