public static LivesLivesLog GetSingleton() { if (mInstance == null) { GameObject tmpGo = new GameObject("LivesLivesLog"); GameObject.DontDestroyOnLoad(tmpGo); mInstance = tmpGo.AddComponent <LivesLivesLog>(); } return(mInstance); }
// Use this for initialization void Start() { LivesLivesLog.GetSingleton().Init(); }