Пример #1
0
        //public static event Action<GameActionEvent> GameActionEvent;

        public static void OnControlledAdded(ControlledEntity entity)
        {
            if (GameEvents.ControlledCreated != null)
            {
                GameEvents.ControlledCreated.Invoke(entity);
            }
        }
Пример #2
0
 public void Bind(
     ControlledEntity controlled,
     float xOffset,
     float yOffset)
 {
     this.controlled = controlled;
     this.xOffset    = xOffset;
     this.yOffset    = yOffset;
 }
Пример #3
0
 public GameScopeEvaluator(ControlledEntity controlled)
 {
     this.controlled = controlled;
 }
Пример #4
0
 protected override void OnReset()
 {
     this.controlled = null;
     this.xOffset    = 0.0f;
     this.yOffset    = 0.0f;
 }