/// <summary> /// Called by framework. Do not call directly. /// </summary> public static void Instanciate() { _instance = new Screen(); _instance._lastWidth = Width; _instance._lastHeight = Height; GameFramework.RegisterForUpdate(_instance); }
/// <summary> /// Called by framework. Do not call directly. /// </summary> public static void Instantiate() { _instance = new Mouse(); Global.gEnv.pHardwareMouse.AddListener(_instance); GameFramework.RegisterForUpdate(_instance); HitEntityId = 0; HitEntityUV = new Vec2(); }
public Timer(float time, bool looping, Action onTimerExpired = null) { GameFramework.RegisterForUpdate(this); this._timeToLive = time; this._onTimerExpired = onTimerExpired; this.Looping = looping; _startTime = Engine.Timer.GetCurrTime(); }
public DeferredMouseListener(Mouse mouse) { _mouse = mouse; GameFramework.RegisterForUpdate(this); Global.gEnv.pHardwareMouse.AddListener(this); }
/// <summary> /// Called by framework. Do not call directly. /// </summary> public static void Instantiate() { _instance = new SceneManager(); GameFramework.RegisterForUpdate(_instance); }
void AddListener() { GameFramework.RegisterForUpdate(this); Global.gEnv.pHardwareMouse.AddListener(this); }