예제 #1
0
        public AttackTargetGoal(GameObject inOwner, GameObject inTarget)
            : base(inOwner)
        {
            _target = inTarget;
            if (inOwner != null)
            {
                _attack = inOwner.GetComponent <IAttackInterface>();
            }

            if (inTarget != null)
            {
                _targetState = inTarget.GetComponent <IActionStateMachineInterface>();
            }
        }
 public TripleAttackController(IAttackInterface attack) : base(attack)
 {
 }
예제 #3
0
 /// <summary>
 /// init properties
 /// </summary>
 /// <param name="attack"></param>
 public DoubleShotAttackController(IAttackInterface attack) : base(attack)
 {
     _bulletRateOffsetTime = 0;
 }