コード例 #1
0
    void Start()
    {
        Load();

        if (_type == ModelType.MODEL)
        {
            _model        = _info.getCharacterParameter.modelType;
            _image.sprite = _states[(int)_model];
        }
        else if (_type == ModelType.COSTUME)
        {
            _costume      = _info.getCharacterParameter.costumeType;
            _image.sprite = _states[(int)_costume];
        }
        else if (_type == ModelType.DECORATION)
        {
            _decoration   = _info.getCharacterParameter.decorationType;
            _image.sprite = _states[(int)_decoration];
        }
    }
コード例 #2
0
ファイル: StatesChange.cs プロジェクト: ooHIROoo/Imagine2016
    void Start()
    {
        Load();

        if (_type == ModelType.MODEL)
        {
            _model = _info.getCharacterParameter.modelType;
            _image.sprite = _states[(int)_model];
        }
        else if (_type == ModelType.COSTUME)
        {
            _costume = _info.getCharacterParameter.costumeType;
            _image.sprite = _states[(int)_costume];
        }
        else if (_type == ModelType.DECORATION)
        {
            _decoration = _info.getCharacterParameter.decorationType;
            _image.sprite = _states[(int)_decoration];
        }
    }