public override void Visit(UFOCol a) { //AlienGrid Hit WallGroup ---> detect wich wall GameObject WallChildren = (GameObject)GetFirstChild(); CollisionPair.Collide(a, WallChildren); }
public override void Visit(UFOCol a) { //UFO Hit WallLeaf ---> Which UFO GameObject UFOChild = (GameObject)Iterator.GetChild(a); CollisionPair.Collide(UFOChild, this); }
public static void InitialUFO() { UFOCol UCol = (UFOCol)GameObjectMan.Find(50, 50).GameObj; if (UCol.Reservedchildren.GetHead() != null) { _UFOMan.UFO = (UFOLeaf)UCol.Reservedchildren.GetHead(); UCol.Reservedchildren.Remove(GetUFO()); UpdateUFOPos(); PlayBatchMan.Find(BatchName.Box).Add(GetUFO().CollisionObj.Box); PlayBatchMan.Find(BatchName.Box).Add(UCol.CollisionObj.Box); } else { _UFOMan.UFO = new UFOLeaf(GameSpriteName.UFO, 400, 200, 50, 6); UpdateUFOPos(); } UCol.Add(_UFOMan.UFO); }
public virtual void Visit(UFOCol b) { }