예제 #1
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();
        ExploreCat cat = (ExploreCat)target;

        // type = (CatType)EditorGUILayout.EnumPopup(type);
        if (GUILayout.Button("LOVE PARTICLE"))
        {
            cat.loveParticles();
        }
        if (GUILayout.Button("MAGIC PARTICLE"))
        {
            cat.Magic();
        }
        if (GUILayout.Button("FADE"))
        {
            cat.FadeAndAvoidHit();
        }
        if (GUILayout.Button("FLY"))
        {
            cat.FlyAndAvoidHit();
        }
        if (GUILayout.Button("SET TEXTURE"))
        {
            cat.sideEffect = new SideEffect(Fx.Scared, SecondaryType.Arrow);
            cat.setEffect();
        }
    }
예제 #2
0
    public static void defaultResponse(ActionType action, ExploreCat userCat)
    {
        switch (action)
        {
        case ActionType.Magic:
            //instantiates sparkle particles; change color to something else; level + 2
            userCat.Magic();
            break;

        case ActionType.Ghost:
            //increases stats; cat fades then disappears from field; harder to land a hit
            userCat.tempBoost(2);
            userCat.FadeAndAvoidHit();
            break;

        case ActionType.Fly:
            // automatically able to flee - on flee, message isn't 'fled successfully', but '[name] used fly to escape!'
            //if in battle, cat floats above, only ranged cats or other flying cats can land a hit
            userCat.FlyAndAvoidHit();
            break;
        }
    }