Exemple #1
0
 public override void Collide(Engine engine, WorldCube otherCube, Vector3 direction)
 {
     if (direction != Vector3.UnitZ)
     {
         Move(engine, GridPosition + direction);
     }
 }
Exemple #2
0
 /// <summary>
 /// Runs when another cube tries to move onto this cube.
 /// </summary>
 public virtual void Collide(Engine engine, WorldCube otherCube, Vector3 direction)
 {
 }
Exemple #3
0
 /// <summary>
 /// Runs when another cube tries to move onto this cube.
 /// </summary>
 public virtual void Collide(Engine engine, WorldCube otherCube, Vector3 direction)
 {
 }
Exemple #4
0
 public override void Collide(Engine engine, WorldCube otherCube, Vector3 direction)
 {
     if (direction != Vector3.UnitZ)
         Move(engine, GridPosition + direction);
 }