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

            default:
                break;
            }
        }
 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()));
 }