Exemplo n.º 1
0
    void Start()
    {
        PowerupFactory puf = PowerupFactory.GetPUF();

        if (puf == null)
        {
            return;
        }
        bool isActive = puf.IsSpawning();

        if (myLabel)
        {
            if (isActive)
            {
                myLabel.text = "Spawner On";
            }
            else
            {
                myLabel.text = "Spawner Off";
            }
        }
    }