Example #1
0
    public virtual void OnHit(Entity target)
    {
        if (target.spirit == null) return;
        target.OnHit(this);

        if (user.isPlayer)
        {
            Debug.Log(
                "Hit! " + user + " -> " + target + " " +
                "power: " +
                target.spirit.light.power + " / " +
                target.spirit.darkness.power + ", exp: " +
                target.spirit.light.exp + " / " +
                target.spirit.darkness.exp
            );
        }
    }
Example #2
0
    public virtual void OnHit(Entity target)
    {
        if (target.spirit == null) return;
        target.OnHit(this);

        if (!(user is Dolphin)) return;
        /*
        Debug.Log(
            "Hit! " + user + " -> " + target + " " +
            "power: " +
            target.spirit.light.power + " / " +
            target.spirit.darkness.power + ", exp: " +
            target.spirit.light.exp + " / " +
            target.spirit.darkness.exp
        );
        */
    }