Exemplo n.º 1
0
    private void Awake()
    {
        gameController = GameObject.FindWithTag(Tags.GameController)
                         .GetComponent <GameController>();
        timedSpawner = GetComponent <TimedSpawner>();

        UpdateTimedSpawner();
    }
    private void Awake()
    {
        gameController = GameObject.FindWithTag(Tags.GameController).GetComponent <GameController>();

        Debug.Log("Is enabled at start : " + gameController.IsGameStarted);

        timedSpawner = GetComponent <TimedSpawner>();
    }
Exemplo n.º 3
0
    private void Awake()
    {
        this.gameController = GameObject.FindGameObjectWithTag(Tags.GameController).
                              GetComponent <GameController>();
        timedSpawner = GetComponent <TimedSpawner>();

        if (gameController == null)
        {
            Debug.Log("GameController component or GameObject not found!");
        }
        if (timedSpawner == null)
        {
            Debug.Log("TimedSpawner component not found!");
        }

        UpdateTimedSpawner();
    }
Exemplo n.º 4
0
 protected static void triggerTimedSpawner(int jobIndex, ref TimedSpawner spawner, ref EntityCommandBuffer.ParallelWriter buffer, in Translation translation, in Rotation rotation)