Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

How can i solve this error?because i am doing the right things

$
0
0
#pragma strict var health : float = 100.0; var hunger : float = 100.0; function Start () { } function Update () { hunger -= Time.deltaTime/3; if (hunger <=5){ health --; } if (health <=0){ print ("Moriste!"); } health = Mathf.(lamp(health, 0.0, 100.0); hunger = Mathf.(lamp(hunger, 0.0, 100.0); } function OntriggerEnter (other : Collider) { if (other.gameObject.name == ("Banana")&& hunger <=90.0){ health += 10; Destroy (other.gameObject.transform.parent.gameObject); } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>