// Use this for initialization void Start() { gameManageObject = GameObject.FindGameObjectWithTag("GameController").GetComponent<gameManage>(); knightMat = Resources.Load("KnightCommPtMat") as Material; cultMat = Resources.Load("CultCommPtMat") as Material; }
// Use this for initialization void Start() { mainCameraObj = GameObject.FindGameObjectWithTag("MainCamera"); buttonText = GameObject.Find("DialogueLabel").GetComponent<UILabel>(); narrativeAnchor = GameObject.FindGameObjectWithTag("NarrativeAnchor"); narrativeDialogue = GameObject.FindGameObjectWithTag("NarrativeDialogue").GetComponent<UILabel>(); mReaderObject = GameObject.Find("A*").GetComponent<MissionReader>(); gameManageObject = GameObject.FindGameObjectWithTag("GameController").GetComponent<gameManage>(); storeDataObject = GameObject.Find("SaveData").GetComponent<StoreData>(); readDialogueFile(); gameManageObject.narrativePanelOpen = true; if(Application.loadedLevelName == "Tutorial") { readSection(1); } }
//End of AI // Use this for initialization if we need it void Start() { gameManageObject = GameObject.FindGameObjectWithTag("GameController").GetComponent<gameManage>(); soundObject = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<SoundManager>(); missionReaderObject = GameObject.Find("A*").GetComponent<MissionReader>(); }
public static gameManage myInstance; //实例化自身供子组件的脚本调用 private void Awake() { myInstance = this; }