コード例 #1
0
        bool OnAny(ActionResult actionResult, float dt)
        {
            IWeapon newWeapon = (IWeapon)weapon.Clone();

            newWeapon.OnCreation(actionResult, source, this);
            newWeapon.OnCollision(actionResult, target);
            return(true);
        }
コード例 #2
0
        protected override bool OnTargetAquired(GameResult gameResult, float dt, IControlable newTarget)
        {
            IWeapon newWeapon = (IWeapon)weapon.Clone();

            newWeapon.OnCreation(gameResult, source, this);
            newWeapon.WeaponInfo.Target = newTarget;
            newWeapon.OnCollision(gameResult, newTarget);
            return(true);
        }