示例#1
0
文件: thePlot.cs 项目: BXZR/GAL
    //其余元素的初始化,有些初始化只应该在剧本树建立完成之后做
    //在这个方法里面初始化各种控制单元
    void makeValueStart()
    {
        theTextController   = this.GetComponent <textController> ();  //文本控制单元
        theChoiceController = this.GetComponent <choiceController>(); //分支选择控制单元
        theUIController     = this.GetComponent <UIController>();     //非文本显示的UI控制单元

        //theMusicController =  this.transform .GetComponentInChildren<MusicController> ();//音频比较特殊,需要父子关系,因为需要同时播放多个音效,音乐
        theMusicController       = this.GetComponent <AudioGetter>().GetMusicController();
        theSoundController       = this.transform.GetComponentsInChildren <soundController>()[0];   //两个sound,一个是真的音效,一个是语音音效
        thePeopleSoundController = this.transform.GetComponentsInChildren <soundController>()[1];   //两个sound,一个是真的音效,一个是语音音效
        theDataController        = this.GetComponent <saveLoadController>();
    }
示例#2
0
文件: saveButtons.cs 项目: BXZR/GAL
 //注意这个按钮的代码需要与startButton的代码同步
 //这是前期设计上的一个问题,后期还需要修正
 void Start()
 {
     theDataController = theAllController.GetComponent <saveLoadController> ();
     thePlotController = theAllController.GetComponent <thePlot> ();
     pictureMaker      = theAllController.GetComponent <saveLoadPicture> ();
     theShowTimeText   = this.GetComponentInChildren <Text> ();
     if (theShowTimeText)
     {
         theShowTimeText.text = "空档";
     }
     //saveLoadPicture名字是固定的
     theSavePicture = this.transform.Find("saveLoadPicture").GetComponent <Image>();
     pictureMaker.getCamera();
     makeFlash();
 }
示例#3
0
 void Start()
 {
     theDataController = theAllController.GetComponent <saveLoadController> ();
     thePlotController = theAllController.GetComponent <thePlot> ();
 }