Esempio n. 1
0
    void SwitchForm(SlimeForm formId)
    {
        m_dataKeeper.SwitchForm(formId);

        foreach (Transform ch in formPart)
        {
            ch.GetComponent <Renderer>().material = formMaterials[(int)m_dataKeeper.currentForm];
        }
    }
Esempio n. 2
0
    public void switchForm(SlimeForm formId)
    {
        string tmpStr = "Form: ";

        for (int i = 0; i < 5; i++)
        {
            if (i == (int)formId)
            {
                tmpStr += "<size=100>" + (i + 1) + "</size>";
            }
            else
            {
                tmpStr += "" + (i + 1);
            }
        }
        formShower.text = tmpStr;
    }
Esempio n. 3
0
    public void SwitchForm(SlimeForm form)
    {
        switch (form)
        {
        case SlimeForm.Spring:
            if (itemCount[(int)ItemClass.SpringSoul] > 0)
            {
                currentForm = form;
            }
            break;

        case SlimeForm.Summer:
            if (itemCount[(int)ItemClass.SummerSoul] > 0)
            {
                currentForm = form;
            }
            break;

        case SlimeForm.Autumn:
            if (itemCount[(int)ItemClass.AutumnSoul] > 0)
            {
                currentForm = form;
            }
            break;

        case SlimeForm.Winter:
            if (itemCount[(int)ItemClass.WinterSoul] > 0)
            {
                currentForm = form;
            }
            break;

        default:
            currentForm = form;
            break;
        }
    }