public void AddGameObject() { // Get a random city City city = map.GetCityRandom(); // Get city location Vector2 cityPosition = city.unity2DLocation; // Create a tank and position it on the appropiate location GameObject tankGO = Instantiate(Resources.Load <GameObject>("Tank/CompleteTank")); tank = tankGO.WMSK_MoveTo(cityPosition); tank.autoRotation = true; tank.terrainCapability = TERRAIN_CAPABILITY.OnlyGround; // Closer look map.FlyToLocation(cityPosition, 0.5f, 0.1f); }