// 開始時に呼ばれます
 private void Start()
 {
     rigidbody            = GetComponent <Rigidbody>();
     sceneController      = GameObject.FindGameObjectWithTag("SceneController").GetComponent <SceneController>();
     rigidbody.useGravity = false;
 }
Exemplo n.º 2
0
 private void Start()
 {
     sceneController = GameObject.FindGameObjectWithTag("SceneController").GetComponent <SceneController>();
     audioSource     = sceneController.transform.GetComponent <AudioSource>();
 }
 // 開始時に呼ばれます
 private void Start()
 {
     //事前にコンポーネントします
     rigidbody       = GetComponent <Rigidbody>();
     sceneController = GameObject.FindGameObjectWithTag("SceneController").GetComponent <SceneController>();
 }