public void HatLanding() { if (!hasTouched) { controller.Notify(true); hasTouched = true; happyExp.SetActive(true); sadExp.SetActive(false); hat.SetActive(true); var go = Instantiate(onHitEffectProto) as GameObject; go.transform.position = onHitEffectTrans.position; go.SetActive(true); col.enabled = false; } }
private void OnCollisionEnter2D(Collision2D collision) { controller.Notify(false); }