public void Attack(IFacade facadeI, bool prim, bool secondary) { ComandDataAim cma = new ComandDataAim(); ComandDataAttack cda = new ComandDataAttack(); cma.IsPrimaryPressed = prim; cma.IsSecondaryPressed = secondary; cda.IsPrimaryPressed = prim; cda.IsSecondaryPressed = secondary; facadeI.ComandGet(cma); facadeI.ComandGet(cda); }
protected override bool GetInputData(ComandDataBase comandData) { ComandDataAttack comandDataAttack = comandData as ComandDataAttack; if (comandDataAttack != null) { if (comandDataAttack.IsPrimaryPressed) { StateController.WeaponModule.SetPressedFlags(comandDataAttack.IsPrimaryPressed, comandDataAttack.IsSecondaryPressed); } return(true); } return(false); }