예제 #1
0
 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;
     }
 }
예제 #2
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     controller.Notify(false);
 }