コード例 #1
0
        public StationWorker GetStationWorker(FashionGameStation station)
        {
            StationWorker result = null;

            if (station is HoldingStation)
            {
                throw new ArgumentException("HoldingStations don't have workers", "station");
            }
            else if (station is HairStation)
            {
                result = mHairStationWorkers.GetNpc();
            }
            else if (station is MakeupStation)
            {
                result = mMakeupStationWorkers.GetNpc();
            }
            else if (station is TailorStation)
            {
                result = mSewingStationWorkers.GetNpc();
            }
            else
            {
                throw new ArgumentException("Unexpected ModelStation (" + station.GetType().Name + ")");
            }

            return(result);
        }
コード例 #2
0
        public FashionModel GetModel(FashionLevel level, FashionModelNeeds needs, string type)
        {
            FashionModelInfo modelTypeInfo = mFashionModelTypes[type];
            FashionModel     resultModel   = mFashionModels.GetNpc();

            resultModel.SetActive(needs, level);
            resultModel.WalkSpeed = modelTypeInfo.Speed;
            resultModel.UnityGameObject.SetActiveRecursively(true);

            return(resultModel);
        }