Exemplo n.º 1
0
    public override void ItemEvent(ShinBattleController s)
    {
        s.Recovery(false, amount);
        GameObject ef = Resources.Load("Prefabs/Effects/Recovery_MP", typeof(GameObject)) as GameObject;

        MonoBehaviour.Instantiate(ef, s.transform.position, Quaternion.Euler(270.0f, 0.0f, 0.0f));
    }
Exemplo n.º 2
0
    public override void ItemEvent(ShinBattleController s)
    {
        s.enabled = true;
        s.GetComponent <CharacterController> ().enabled = true;
        s.Revival();
        s.Recovery(true, amount);
        GameObject ef = Resources.Load("Prefabs/Effects/Recovery_HP", typeof(GameObject)) as GameObject;

        MonoBehaviour.Instantiate(ef, s.transform.position, Quaternion.Euler(270.0f, 0.0f, 0.0f));
    }