Ejemplo n.º 1
0
 // Override StartSpecific
 override public void StartSpecific()
 {
     Debug.Log("Bunny started");
     mobType = BUNNY_MOB;
     // Initialize behaviour
     behaviour             = new BunnyBehaviour();
     behaviour.attachedMob = this;
 }
Ejemplo n.º 2
0
    void Start()
    {
        mapGenerator = MapGenerator.instance;
        animation    = GetComponentInChildren <Animation>();
        hopFrequency = hopFrequency * Random.Range(0.7f, 1.3f);

        behaviour = new Walking();
    }