コード例 #1
0
 void Awake()
 {
     prepCtrl = GameObject.FindGameObjectWithTag("GameController").GetComponent<PreperationController>();
 }
コード例 #2
0
    void Awake()
    {
        worldLevelsDict = new Dictionary<int, WorldLevel>();
        worldLevelUsingIndicatorDict = new Dictionary<MapIndicator, WorldLevel>();
        foreach (WorldLevel item in worldLevels) {
            worldLevelsDict.Add (item.levelID, item);
            worldLevelUsingIndicatorDict.Add (item.indicator, item);
        }

        prepCtrl = GetComponent<PreperationController>();

        enabled = false;
    }