internal void SpawnPlatformHight(Type_Platform type) { Platform pf; if (pools[type].GetAvailable(false, out pf)) { if (pf == null) { return; } Vector3 pos = _lastPos; pos.x += classic_width; pos.y += 6.66f; pf.SetPosition(pos); } }
internal void SpawnPlatform(Type_Platform type) { Platform pf; if (pools[type].GetAvailable(false, out pf)) { Vector3 pos = _lastPos; pos.x += classic_width; pf.SetPosition(pos); _lastPlatform = pf; _lastPos = pos; } ++platformCount; }