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>(); }
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>(); }