Ejemplo n.º 1
0
 void OnMouseOver()
 {
     if (Input.GetMouseButtonDown(0))
     {
         EnvironmentScript.setHumanMarked(this.gameObject);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 4
0
		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;
		}