public AstrumClient() { ViewModel = new MainWindowViewModel(); ViewModel.PropertyChanged += ViewModel_PropertyChanged; _questHandler = new QuestHandler(this); _raidHandler = new RaidHandler(this); _furyRaidHandler = new FuryRaidHandler(this); _limitedRaidHandler = new LimitedRaidHandler(this); _breedingHandler = new BreedingHandler(this); _guildBattleHandler = new GuildBattleHandler(this); _mypageHandler = new MypageHandler(this); _giftHandler = new GiftHandler(this); _itemHandler = new ItemHandler(this); _gachaHandler = new GachaHandler(this); _trainingHandler = new TraningHandler(this); _specialAreaHandler = new SpecialAreaHandler(this); _talkHandler = new TalkHandler(this); ViewModel.IsQuestEnable = true; ViewModel.IsGuildBattleEnable = false; ViewModel.IsSpecialAreaEnable = false; ViewModel.MinStaminaStock = DEFAULT_STOCK; ViewModel.MinBpStock = DEFAULT_STOCK; ViewModel.KeepStamina = DEFAULT_KEEP_STAMINA; ViewModel.BaseDamage = DEFAULT_BASE_DAMAGE; }
void Start() { if (!Equipment) { Equipment = GetComponent <PlayerEquipment>(); } if (!Inventory) { Inventory = GetComponent <Inventory>(); } if (!healthBarManager) { healthBarManager = FindObjectOfType <HealthBarManager>(); } if (!agent) { agent = GetComponent <NavMeshAgent>(); } if (!chunkManager) { chunkManager = FindObjectOfType <ChunkManager>(); } if (!gameManager) { gameManager = FindObjectOfType <GameManager>(); } if (!Equipment) { Equipment = GetComponent <PlayerEquipment>(); } if (!rbody) { rbody = GetComponent <Rigidbody>(); } if (!raidHandler) { raidHandler = GetComponent <RaidHandler>(); } if (!arenaHandler) { arenaHandler = GetComponent <ArenaHandler>(); } if (!duelHandler) { duelHandler = GetComponent <DuelHandler>(); } if (!combatHandler) { combatHandler = GetComponent <CombatHandler>(); } if (!playerAppearance) { playerAppearance = GetComponent <PlayerAppearance>(); } if (!playerAnimations) { playerAnimations = GetComponent <PlayerAnimationController>(); } if (healthBarManager) { healthBarManager.Add(this); } }