Exemple #1
0
    public AudioClip ResultGameAudio2; //  인게임종료

    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        else if (instance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);

        //임의의 함수
    }
 void FillCanvasVariables()
 {
     lifeText = GameObject.Find("life txt").GetComponent<Text>();
     guiScr = GameObject.Find("Menu").GetComponent<GuiScript>();
     soundManagerScr = GameObject.Find("BGM Manager").GetComponent<SoundManagerScr>();
     gameOverScr = GameObject.Find("Dying").GetComponent<GameOverScript>();;
 }