Exemple #1
0
        protected override void OnInit(object userData)
        {
            base.OnInit(userData);
            targetter = transform.Find("Targetter").GetComponent <Targetter>();
            attacker  = transform.Find("Attack").GetComponent <Attacker>();

            targetter.OnInit(userData);
            attacker.OnInit(userData);
        }
        protected override void OnInit(object userData)
        {
            base.OnInit(userData);

            targetter = transform.Find("Targetter").GetComponent <Targetter>();

            slowList = new List <EntityEnemy>();

            targetter.OnInit(userData);
        }
        protected override void OnInit(object userData)
        {
            base.OnInit(userData);

            Agent            = GetComponent <NavMeshAgent>();
            hpBarRoot        = transform.Find("HealthBar");
            dicSlowDownRates = new Dictionary <int, float>();
            stateList        = new List <FsmState <EntityEnemy> >();
            CurrentSlowRate  = 1;

            Targetter = transform.Find("Targetter").GetComponent <Targetter>();
            Attacker  = transform.Find("Attack").GetComponent <Attacker>();

            Targetter.OnInit(userData);
            Attacker.OnInit(userData);
        }