コード例 #1
0
ファイル: Select.cs プロジェクト: takeda0629/weatherwar
    // Start is called before the first frame update
    void Start()
    {
        p1Sel = GameObject.Find("P1Select").GetComponent <CharaSelect>();
        p2Sel = GameObject.Find("P2Select").GetComponent <CharaSelect>();
        p3Sel = GameObject.Find("P3Select").GetComponent <CharaSelect>();
        p4Sel = GameObject.Find("P4Select").GetComponent <CharaSelect>();


        characters = new int[4];
    }
コード例 #2
0
        private void InitGUI()
        {
            //Character Select
            List <ParamCharaController> controllers = DBControllerManager.GetAllController();

            charaSelect = new CharaSelect(DBControllerManager._controllers, "No character loaded", 0, 25);

            //Enbale Checkbox
            controllEnable = new ToggleEnabled("Enable controller", false);

            //Coordinate Select
            ChaFileDefine.CoordinateType[] coordinateList = new ChaFileDefine.CoordinateType[]
            {
                ChaFileDefine.CoordinateType.School01,
                ChaFileDefine.CoordinateType.School02,
                ChaFileDefine.CoordinateType.Gym,
                ChaFileDefine.CoordinateType.Swim,
                ChaFileDefine.CoordinateType.Club,
                ChaFileDefine.CoordinateType.Plain,
                ChaFileDefine.CoordinateType.Pajamas,
            };
            List <string> coordinateStringList = new List <string>();

            for (int i = 0; i < coordinateList.Count(); i++)
            {
                coordinateStringList.Add(coordinateList[i].ToString());
            }
            coordinateSelect = new CoordinateSelect(coordinateStringList.ToArray(), coordinateList, "", 175, 25);

            //State Select
            kindSelect = new SelectableButton <ParamCharaController.ParamsKind>(Color.cyan);

            //Parameter editors
            editorBust = new EditorBust();
            editorHip  = new EditorHip();

            //Tools Window
            tools = new ToolsWindow(_toolsWindowId, _s_dialogID, this);

            //GUI Style
            styleMatchState             = new GUIStyle(Skin.defaultSkin.button);
            styleMatchState.fixedHeight = 25;
        }