示例#1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.tag == "Player")
     {
         Destroy(Key);
         KeyEnabled.SetActive(true);
         KeyDisabled.SetActive(false);
     }
 }
示例#2
0
 void Start()
 {
     KeyEnabled.SetActive(false);
     KeyDisabled.SetActive(true);
 }