Example #1
0
        public override bool Perform(GameObject agent)
        {
            if (_soldier.HasFlag == false)
            {
                return(false); // lost the flag somewhere
            }
            _flag.Score(_droppingBase);
            _soldier.HasFlag = false;
            _scored          = true; // you have dropped the flag

            print("scored flag");

            return(true);
        }
Example #2
0
        public override bool Perform(GameObject agent)
        {
            if (_soldier.HasFlag == false)
            {
                return(false); // lost the flag somewhere
            }
            if (_droppingBase.MyTeam != _soldier.MyTeam)
            {
                _tm.ResetTeamPlan();
                return(false);
            }

            _flag.Score(_droppingBase);
            _soldier.HasFlag = false;
            _scored          = true; // you have dropped the flag

            print("GP3 - Scored Flag");
            //_tm.DoWaitFlag(_soldier);

            return(true);
        }