Ejemplo n.º 1
0
    private void Reactioning()
    {
        timer += Time.deltaTime;
        float nowTime = reactionTime - timer;

        if (nowTime >= 0)
        {
            leftTime.text = "남은 시간\n" + (Mathf.Ceil(nowTime * 100) / 100).ToString() + " 초";
        }
        else
        {
            leftTime.text = "남은 시간\n0 초";
        }
        if (nowTime <= 0 && nowReaction)
        {
            // Barrel에 선택한 Matter과 온도, 시간, 연료 값을 넘겨줌
            barrelScript.BioReaction(matterList.matterList[matterNum], temp, reactionTime, fuel);
            timer       = 0;
            temp        = 0;
            fuel        = 0;
            nowReaction = false;
            nowStatus++;
        }
    }