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