public override bool OnCheck()
        {
            return(true);

            Transform target = blackboard.GetValue <Transform> ("Target");

            if (target == null)
            {
                return(false);
            }

            RPGStatCollection statCollection = DamageDealer.FindObjectStatCollection(target.gameObject);

            if (statCollection == null || !statCollection.ContainStat(GlobalSymbol.HP))
            {
                return(false);
            }

            return(statCollection.GetStat <RPGVital> (GlobalSymbol.HP).StatValueCurrent > 0f);
        }
 public override void Awake()
 {
     statCollection = DamageDealer.FindObjectStatCollection(gameObject);
     blackboard     = DamageDealer.FindObjectT <Blackboard> (gameObject);
 }
Example #3
0
 public override void Awake()
 {
     statCollection = DamageDealer.FindObjectStatCollection(gameObject);
 }