コード例 #1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         MainCharacterAttributes attr = other.gameObject.GetComponent <MainCharacterAttributes>();
         if (attr.heldSkull == skull)
         {
             MessageSystem.GetInstance().StartDialogue("Danke :)");
         }
     }
 }
コード例 #2
0
 private void Awake()
 {
     Instance = this;
 }
コード例 #3
0
 private void Awake()
 {
     Instance = this;
 }