private void Awake() { registerTile = GetComponent <RegisterTile>(); cnt = GetComponent <CustomNetTransform>(); dirSprites = GetComponent <NPCDirectionalSprites>(); health = GetComponent <LivingHealthBehaviour>(); }
void Awake() { cnt = GetComponent <CustomNetTransform>(); registerObj = GetComponent <RegisterObject>(); dirSprites = GetComponent <NPCDirectionalSprites>(); health = GetComponent <LivingHealthBehaviour>(); agentParameters.onDemandDecision = true; }
protected virtual void Awake() { mobFollow = GetComponent <MobFollow>(); mobExplore = GetComponent <MobExplore>(); mobFlee = GetComponent <MobFlee>(); health = GetComponent <LivingHealthBehaviour>(); dirSprites = GetComponent <NPCDirectionalSprites>(); cnt = GetComponent <CustomNetTransform>(); registerObject = GetComponent <RegisterObject>(); }
public void Awake() { if (Animations == null) { return; } npcDirectionalSprite = GetComponent <NPCDirectionalSprites>(); livingHealthBehaviour = GetComponent <LivingHealthBehaviour>(); simpleAnimal = GetComponent <SimpleAnimal>(); foreach (var AnimationEntry in Animations) { if (AnimationEntry.Sprites == null) { return; } LoadedSprites.Add(Count, new Tuple <Sprite[], bool, bool, bool, float, List <int> >(AnimationEntry.Sprites, AnimationEntry.Simple, AnimationEntry.SimpleResetDirection, AnimationEntry.IsDeathAnimation, AnimationEntry.Speed, AnimationEntry.ComplexAnimationIndex)); Count += 1; } }