예제 #1
0
        public override void HandleCollision(ColldeableObject other)
        {
            switch (other.Type)
            {
            case Constants.Block: Console.WriteLine("Hey Block!"); break;

            default:
                break;
            }
        }
예제 #2
0
 public abstract void HandleCollision(ColldeableObject other);
예제 #3
0
 public override void HandleCollision(ColldeableObject other)
 {
     // do nothing
     Console.WriteLine(string.Concat("I'm doing shit bruh ", other.GetType().ToString()));
 }