Ejemplo n.º 1
0
    //概要 : アイテムを管理に含める
    //引数 : IetmBase newItem  管理に追加する新しいアイテム
    //返値 : bool 成否    TRUE:成功/FALSE:失敗
    //詳細 : GameControllerにアイテムを追加します。
    //        追加されたアイテムは「ItemEvent」を受け取ることができます。
    //        返値にFALSEが返った場合は既に管理に含まれるか
    //        管理の上限に達している場合です。
    public bool AddPsychopath(Psychopath newPsycho)
    {
        if (ManagingPsychopath)
        {   //err
            return(false);
        }
        ManagingPsychopath = newPsycho;

        return(true);
    }
Ejemplo n.º 2
0
    public void PopulateGroup()
    {
        if (seats[0] != null)
        {
            Debug.Log("Group already populated."); // If you want to be able to clean sweep the group, you have to clear occupiedSeats else StackOverflow exception

            return;
        }

        Debug.Log("Populating group...");

        psychopath = SetupPerson(0);

        for (int i = 1; i < groupSize; i++)
        {
            SetupPerson(i);
        }

        MusicalChairs(); // Jesus why the f**k

        controlText.text = "" + controlMembersLeft;
    }