Inheritance: UnityEngine.MonoBehaviour
コード例 #1
0
 // Use this for initialization
 void Start()
 {
     var sideKick = GameObject.FindGameObjectWithTag(Constants.Tags.SideKick);
     if (sideKick == null) return;
     _sidekick = sideKick.GetComponent<SidekickControls>();
     isb = GameObject.FindGameObjectWithTag(Constants.Tags.SpeechCanvas).GetComponent<InteractableSpeechBubble>();
     gameui = GameObject.FindGameObjectWithTag("GameUI");
     am = GameObject.FindGameObjectWithTag(Constants.Tags.AudioManager).GetComponent<AudioManager>();
     //dm = GameObject.FindGameObjectWithTag(Constants.Tags.DatabaseManager).GetComponent<DatabaseManager>();
 }
コード例 #2
0
ファイル: OrderPanel.cs プロジェクト: veselin-/Team4BabelGame
 // Use this for initialization
 void Start()
 {
     _sidekickControls = GameObject.FindGameObjectWithTag(Constants.Tags.SideKick).GetComponent<SidekickControls>();
 }