private void Awake()
 {
     if (instance != null)
     {
         Destroy(this.gameObject);
     }
     else
     {
         instance = this;
     }
 }
예제 #2
0
    private void Awake()
    {
        if (s_Instance == null)
        {
            s_Instance = this;
        }
        else
        {
            Destroy(gameObject);
        }

        m_KnownActors = new List <Actor>();
        m_AllTiles    = FindObjectsOfType <Tile>();
    }
예제 #3
0
 internal NativeTurnBasedMultiplayerClient(NativeClient nativeClient, TurnBasedManager manager)
 {
     this.mTurnBasedManager = manager;
     this.mNativeClient     = nativeClient;
 }
예제 #4
0
 private void Awake()
 {
     Instance = this;
     StartCoroutine(PerformTurns());
 }
 private void Start()
 {
     m_entityContainer = GetComponent <EntityContainer>();
     m_turnManager     = TurnBasedManager.Instance;
 }
예제 #6
0
 private void Start()
 {
     m_pooler     = ObjectPooler.instance;
     m_turnSystem = TurnBasedManager.Instance;
     StartCoroutine(CheckDungeonConnection());
 }
예제 #7
0
 private void Start()
 {
     m_turnManager = TurnBasedManager.Instance;
     m_pooler      = ObjectPooler.instance;
 }