public override void Init(TileSystem tileSystem) { base.Init(tileSystem); InitTileTypeRandomTable(); mapData = MapData.GetInstance(); scoreAssistance = GetAssistance(typeof(ScoreAssistance).Name) as ScoreAssistance; petAssistance = GetAssistance(typeof(PetAssistance).Name) as PetAssistance; }
public override void Init(TileSystem tileSystem) { base.Init(tileSystem); if (gotExpInGame == null) { gotExpInGame = new int[Define.selectedPetsCount]; } for (int i = 0; i < Define.selectedPetsCount; i++) { skillData[i] = new SkillPack(); } mapAssistance = GetAssistance(typeof(MapAssistance).Name) as MapAssistance; scoreAssistance = GetAssistance(typeof(ScoreAssistance).Name) as ScoreAssistance; gameTimeAssistance = GetAssistance(typeof(GameTimeAssistance).Name) as GameTimeAssistance; }
protected override void Awake() { instance = this; ScenesManager.AddScene(this); tileRoot = tileRootTrans; animalRoot = animalRootTrans; Init(); uiSystem.InitSystem(); popupSystem.InitSystem(); tileSystem.InitSystem(); TestCoder.SetTestCode(KeyCode.Space, TestCode); scoreAssistance = Assistance.GetAssistance(typeof(ScoreAssistance).Name) as ScoreAssistance; gameTimeAssistance = Assistance.GetAssistance(typeof(GameTimeAssistance).Name) as GameTimeAssistance; petAssistance = Assistance.GetAssistance(typeof(PetAssistance).Name) as PetAssistance; }
public override void Init(TileSystem tileSystem) { base.Init(tileSystem); scoreAssistance = GetAssistance(typeof(ScoreAssistance).Name) as ScoreAssistance; }