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

        LoadBundlesQueue = new ActionsQueue();
        StartCoroutine(LoadBundlesQueue.ProcessQueue());
    }
Exemplo n.º 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());
        }
    }