示例#1
0
文件: Heart.cs 项目: Pycorax/SP4Unity
    protected override void OnTriggerEnter2D(Collider2D other)
    {
        RPGPlayer player = other.gameObject.GetComponent <RPGPlayer>();

        if (player != null)
        {
            player.Heal(Healing);
        }
        base.OnTriggerEnter2D(other);
    }