예제 #1
0
 void Start()
 {
     if (IsIndestructible)
     {
         DontDestroyOnLoad(gameObject);
     }
     ActionsQueue = new ActionsQueue(QueueName, true);
     StartCoroutine(ActionsQueue.ProcessQueue());
 }
예제 #2
0
    void Start()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        else
        {
            Destroy(gameObject);
            return;
        }

        LoadBundlesQueue = new ActionsQueue();
        StartCoroutine(LoadBundlesQueue.ProcessQueue());
    }
예제 #3
0
    public void Start()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        else
        {
            Destroy(gameObject);
            return;
        }

        ActionsQueue = new ActionsQueue();
        StartCoroutine(ActionsQueue.ProcessQueue());

        if (!IsObserverMode)
        {
            ActionsQueue.AddAction(new PlayGame());
        }
    }