Exemple #1
0
 public void SetZombieType(ZombieType type)
 {
     // go query the zombie type manager for our stats
     stats      = ZombieManager.GetStatsForType((int)type);
     zombieType = type;
     // query the zombie manager for the material
     this.GetComponent <MeshRenderer> ().sharedMaterial = ZombieManager.GetMaterialForType((int)type);
     // get the scale too
     thisTransform.localScale = ZombieManager.GetScaleForType((int)type);
     // set the nucleus multiplier speed
     nucleus.multiplier = stats.speed;
 }