Пример #1
0
        public static GamePlayManager InitGamePlayer()
        {
            if (null != instance)
            {
                return(instance);
            }

            var obj = new GameObject("Game Player Manager");

            obj.transform.localPosition = Vector3.zero;
            obj.transform.localRotation = Quaternion.identity;
            obj.transform.localScale    = Vector3.zero;

            instance = obj.AddComponent <GamePlayManager>();
            DontDestroyOnLoad(obj);

            return(instance);
        }
Пример #2
0
 // Start is called before the first frame update
 private void Start()
 {
     GamePlayManager.InitGamePlayer();
     GameSceneManager.Instance.Init();
 }