Exemplo n.º 1
0
        protected override void OnCollisionWith <T> (T component)
        {
            Pushable pushable = component as Pushable;

            if (pushable)
            {
                pushable.Push(Direction);
            }
        }
Exemplo n.º 2
0
 public void Push(Pushable pushable)
 {
     pushable.Push(Direction);
     Idle();
 }