コード例 #1
0
    void Awake()
    {
        Instance = this;

        LoadGameData();
        _gameManager.GetProfileList();  // Just to force the profile list to be loaded in the inspector.

        _isPlaying = true;

        _playerGameObject = GameObject.FindWithTag("Player");
    }
コード例 #2
0
 private void Awake()
 {
     if (_instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         _instance = this;
     }
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     StartCoroutine(Shipment());
     _mainLevelManager = FindObjectOfType <MainLevelManager>();
 }