public static GameObject RequestServiceGo(GameServiceBase serviceBase) { GameCore.RegistOtherServices <GameServiceBase>(serviceBase); Instance.RegGameRemote(serviceBase); GameObject go = new GameObject(serviceBase.GetType().ToString()); return(go); }
private static void CreateGameService() { if (gameService == null) { #if UNITY_STANDALONE #if STEAM gameService = new SteamGameService(); #endif #elif UNITY_ANDROID gameService = new GooglePlayGameService(); #elif UNITY_IOS gameService = new GameCenterGameService(); #endif } if (gameService == null) { gameService = new GameServiceBase(); } }
public void OnCollisionEnter2D(Collision2D collision) { gameObject.SetActive(false); GameServiceBase.GetService().ShipDestroyed(this); }