Esempio n. 1
0
 private void Awake()
 {
     registerTile = GetComponent <RegisterTile>();
     cnt          = GetComponent <CustomNetTransform>();
     dirSprites   = GetComponent <NPCDirectionalSprites>();
     health       = GetComponent <LivingHealthBehaviour>();
 }
Esempio n. 2
0
 void Awake()
 {
     cnt         = GetComponent <CustomNetTransform>();
     registerObj = GetComponent <RegisterObject>();
     dirSprites  = GetComponent <NPCDirectionalSprites>();
     health      = GetComponent <LivingHealthBehaviour>();
     agentParameters.onDemandDecision = true;
 }
Esempio n. 3
0
 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>();
 }
Esempio n. 4
0
    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;
        }
    }