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