Beispiel #1
0
 // Start is called before the first frame update
 new void Start()
 {
     base.Start();
     Ai = new BunnyAi(this);
     this.Diet.Add("plant");
     //this.Diet.Add("tree");
     Predetors.Add("bear");
     Predetors.Add("wolf");
     tag             = "rabbit";
     Speed           = 125.0f;
     ChaseSpeed      = 179.4f;
     StarvationLimit = 45f;
     nutrition       = 22f;
 }
Beispiel #2
0
 // Start is called before the first frame update
 new void Start()
 {
     base.Start();
     Ai = new PredetorAi(this);
     this.Diet.Add("sheep");
     this.Diet.Add("rabbit");
     Predetors.Add("bear");
     tag = "wolf";
     //GetComponent<Renderer>().material.SetColor("_Color", new Color(.7f,.7f,.7f, 1f));
     Speed           = 135.0f;
     ChaseSpeed      = 200.6f;
     StarvationLimit = 210f;
     nutrition       = 12f;
 }