C#
1using System.Collections; 2using System.Collections.Generic; 3using UnityEngine; 4 5public class Keyy : MonoBehaviour { 6 7 // Use this for initialization 8 void OntriggerEnter ( Collider other ){ 9 transform.Find ("Key").gameObject.SetActive (false){ 10 transform.Find("Door_AA").gameObject.SetActive(true); 11 } 12 } 13}
Keyがfalseになった時、Door_AAをtrueにしたいです。
9行目の{にエラーが出ます。
誰か助けてください(T ^ T)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/01/21 04:31
2017/01/21 04:35
2017/01/21 04:48