예제 #1
0
    void Start()
    {
        ads1 = GetComponent <AudioSource>();
        if (StaticGameData.isMusicOn)
        {
            ads1.volume = 0.775f;
        }
        else
        {
            ads1.volume = 0;
        }

        collision = pencil1.GetComponent <pieceVelocity>();
    }
예제 #2
0
    // Start is called before the first frame update
    void Start()
    {
        ads2 = GetComponent <AudioSource>();
        if (StaticGameData.isSoundOn)
        {
            ads2.volume = 0.775f;
        }
        else
        {
            ads2.volume = 0;
        }
        collision = piece.GetComponent <pieceVelocity>();

        lathe = GetComponent <AudioSource>();
        lathe.Play();
    }