rise-and-swine/Assets/Scripts/Assembly-CSharp/BoxingGlove.cs
2023-02-25 23:04:03 -05:00

15 lines
451 B
C#

using UnityEngine;
public class BoxingGlove : MonoBehaviour
{
private void OnCollisionEnter(Collision coll)
{
if (!BoxingGlove.suckerPunchReported && Singleton<SocialGameManager>.IsInstantiated() && coll.collider.gameObject.GetComponent<KingPig>())
{
BoxingGlove.suckerPunchReported = true;
Singleton<SocialGameManager>.Instance.ReportAchievementProgress("grp.SUCKER_PUNCH", 100.0);
}
}
private static bool suckerPunchReported;
}