FamilyTree.OnGUI C# (CSharp) 메소드

OnGUI() 공개 메소드

public OnGUI ( ) : void
리턴 void
    public void OnGUI()
    {
        Event currEvent = Event.current;
        //Insert that nut into the hole... heh
        if(currEvent.isKey && currEvent.character == 'e' && selected)
        {
            if(player.nutCount <= 3 && player.nutCount != 0)
            {
                player.nutCount--;
                nutCountFamily++;
                player.collectedNutToFamily(nutCountFamily);
            }

        }
    }