Beispiel #1
0
    public void ChangeManteau(bool sens)
    {
        CharacterSelect chara = instance.allChara[GetCurrentPersonnalizationSlot()];

        chara.GetInfos().GetModelInfos().ChangeManteau(sens);
        chara.GetInfos().GetModelInfos().SetModelToModelParameters(chara.GetGameObject());
    }
Beispiel #2
0
    public static void DeletePlayer(ButtonHolder button)
    {
        CharacterSelect toRemove = null;

        foreach (CharacterSelect c in instance.allChara)
        {
            if (c.GetSlot() == button.slot_id)
            {
                toRemove = c;

                Debug.Log("Removed " + c.gameObject);
            }
        }
        if (toRemove != null)
        {
            instance.allChara.Remove(toRemove);
            instance.availableControls.Add(toRemove.GetInfos().GetControls());
        }


        if (button.slot_id == 2)
        {
            instance.player3.GetComponent <CharacterSelect>().Delete();
            instance.player3.SetActive(false);
        }
        else
        {
            instance.player4.GetComponent <CharacterSelect>().Delete();
            instance.player4.SetActive(false);
        }


        button.UnDisplay();
    }