Пример #1
0
    void Start()
    {
        timeLeft = lifespan;

        wwInterface    = GetComponent <WwiseInterface>();
        gameController = GameObject.FindObjectOfType <GameController>();

        if (!inTutorial)
        {
            StartCoroutine(CountDown());
        }
    }
Пример #2
0
    void Awake()
    {
        DontDestroyOnLoad(transform.gameObject);

        wwInterface = GetComponent <WwiseInterface>();
    }