示例#1
0
 public void Init()
 {
     //初始化冒險
     Adventure adventure = new Adventure(1);
     MC = transform.FindChild("MilestoneController").GetComponent<MilestoneController>();
     MC.Init(adventure.Data, adventure.GetEventTypes(), adventure.GetEventMiles(), adventure.GetUnknownEvent());
     //設定里程
     Miles = transform.FindChild("Miles").FindChild("miles").GetComponent<Text>();
 }
示例#2
0
    public void Init()
    {
        //初始化冒險
        Adventure adventure = new Adventure(1);

        MC = transform.FindChild("MilestoneController").GetComponent <MilestoneController>();
        MC.Init(adventure.Data, adventure.GetEventTypes(), adventure.GetEventMiles(), adventure.GetUnknownEvent());
        //設定里程
        Miles = transform.FindChild("Miles").FindChild("miles").GetComponent <Text>();
    }