Beispiel #1
0
        public override bool Perform(GameObject agent)
        {
            if (Target == null || _target.Invulnerable || _onCooldown || Vector3.Distance(agent.transform.position, _target.MyTransform.position) > 1.5f)
            {
                return(false);
            }


            _target.Died();
            _target = null;
            StartCoroutine(StartCooldown());

            _attacked = true;

            print("ATTACKED");
            _tm.ResetTeamPlan();


            return(true);
        }