PlayerSfxScript.Awake C# (CSharp) 메소드

Awake() 공개 메소드

public Awake ( ) : void
리턴 void
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            // Self-destruct if another instance exists
            Destroy(this);
            return;
        }
    }