예제 #1
0
 void Start()
 {
     if (IsIndestructible)
     {
         DontDestroyOnLoad(gameObject);
     }
     ActionsQueue = new ActionsQueue(QueueName, true);
     StartCoroutine(ActionsQueue.ProcessQueue());
 }
예제 #2
0
 public ActionsQueue(string name = "Default queue", bool isStatic = false)
 {
     IsStatic = isStatic;
     Name = name;
     if (isStatic)
     {
         Instance = this;
     }
 }
예제 #3
0
    void Start()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        else
        {
            Destroy(gameObject);
            return;
        }

        LoadBundlesQueue = new ActionsQueue();
        StartCoroutine(LoadBundlesQueue.ProcessQueue());
    }
예제 #4
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());
        }
    }