/*public void GiveWeapon(GameObject weapon) { * if (attacker != null) { * GameObject droppedWeapon = attacker.currentWeapon.gameObject; * weapon.transform.parent = droppedWeapon.transform.parent; * droppedWeapon.transform.parent = null; * * attacker.currentWeapon = weapon.GetComponent<Item>(); * attacker.transform.position = droppedWeapon.transform.position; * droppedWeapon.GetComponent<Rigidbody>().isKinematic = false; * weapon.GetComponent<Rigidbody>().isKinematic = true; * } * }*/ public void Heal(float points) { if (status != null) { status.Heal(points); } }