public override void OnEnable()
 {
     base.OnEnable();
     playersLayer = LayerMask.NameToLayer("Players");
     npcLayer     = LayerMask.NameToLayer("NPC");
     checkMask    = LayerMask.GetMask("Players", "NPC", "Objects");
     mobAI        = GetComponent <MobAI>();
 }
Example #2
0
 private void Awake()
 {
     mobAi      = GetComponent <MobAI>();
     lbh        = GetComponent <LivingHealthBehaviour>();
     mobExplore = GetComponent <MobExplore>();
 }
Example #3
0
 public void Awake()
 {
     mobTile   = GetComponent <RegisterTile>();
     rotatable = GetComponent <Rotatable>();
     mobAI     = GetComponent <MobAI>();
 }