Пример #1
0
    private void AddGravity(Vector3 mousePos)
    {
        objectPos   = Camera.main.ScreenToWorldPoint(mousePos);
        objectPos.z = 0f;

        if (CheckClickable(objectPos))
        {
            uiSystem.AddItem();
            Instantiate(selected, objectPos, Quaternion.identity);
        }
    }