RemoveMyOldPortal() приватный статический Метод

private static RemoveMyOldPortal ( int form ) : void
form int
Результат void
Пример #1
0
 private static int AddPortal(Vector2 position, float angle, int form, int direction)
 {
     if (!PortalHelper.SupportedTilesAreFine(position, angle))
     return -1;
       PortalHelper.RemoveMyOldPortal(form);
       PortalHelper.RemoveIntersectingPortals(position, angle);
       int index = Projectile.NewProjectile(position.X, position.Y, 0.0f, 0.0f, 602, 0, 0.0f, Main.myPlayer, angle, (float) form);
       Main.projectile[index].direction = direction;
       Main.projectile[index].netUpdate = true;
       return index;
 }