IPressableInput
Introduction
Code Example
using FlatRedBall.Input;
namespace ProjectName.Entities
{
public partial class Ship
{
public IPressableInput ShootingInput
{
get;
set;
}
private void CustomInitialize()
{
}
private void CustomActivity()
{
if (ShootingInput.WasJustPressed)
{
FireBullet ();
}
}
private void FireBullet()
{
// do the firing here
}
private void CustomDestroy()
{
}
private static void CustomLoadStaticContent(string contentManagerName)
{
}
}
}Common Usage
Last updated
Was this helpful?