コード例 #1
0
 void DestroyTarget(RaycastHit hit)
 {
     if (hit.transform.tag == "Dummie")
     {
         GM.FinishQuest1();
         //Debug.Log("Hit Dummie1");
         Debug.Log("PostQuest1: " + GM.Quest1);
     }
     else if (hit.transform.tag == "Dummie2")
     {
         GM.FinishQuest2();
         Debug.Log("PostQuest2: " + GM.Quest2);
         //Debug.Log("Hit Dummie2");
     }
     else if (hit.transform.tag == "Dummie3")
     {
         GM.FinishQuest3();
         Debug.Log("PostQuest3: " + GM.Quest3);
         //Debug.Log("Hit Dummie3");
     }
     Instantiate(bloodEffect, hit.point, Quaternion.LookRotation(hit.normal));
     Destroy(hit.collider.gameObject);
 }