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