Beispiel #1
0
    private void OnMouseDown()
    {
        offset.x = transform.position.x - GetMouseWorldPosition().x;
        offset.y = transform.position.y - GetMouseWorldPosition().y;
        SoundRandomContainer soundContainer = GetComponent <IngredientVisual>().soundTake;

        soundContainer?.Play();
    }
Beispiel #2
0
    private void OnMouseUp()
    {
        SoundRandomContainer soundContainer = GetComponent <IngredientVisual>().soundPut;

        soundContainer?.Play();
    }