void Start() { playerConfig = ConfigManager.main.GetConfig("PlayerConfig") as PlayerConfig; gameConfig = ConfigManager.main.GetConfig("GameConfig") as GameConfig; fireConfig = ConfigManager.main.GetConfig("FireConfig") as FireConfig; playerHandConfig = ConfigManager.main.GetConfig("PlayerHandConfig") as PlayerHandConfig; }
void Start() { playerConfig = ConfigManager.main.GetConfig("PlayerConfig") as PlayerConfig; gameConfig = ConfigManager.main.GetConfig("GameConfig") as GameConfig; fireConfig = ConfigManager.main.GetConfig("FireConfig") as FireConfig; playerHandConfig = ConfigManager.main.GetConfig("PlayerHandConfig") as PlayerHandConfig; InitializeCurve(); teleportArea = Instantiate(playerConfig.TeleportAreaPrefab); teleportArea.transform.SetParent(transform.parent); //teleportArea.color = playerConfig.TeleportAreaColorAllowed; }
// Start is called before the first frame update void Start() { config = ConfigManager.main.GetConfig("PlayerHandConfig") as PlayerHandConfig; animator = GetComponent <Animator>(); config.hasFire = false; if (effects != null) { foreach (GameObject effect in effects) { effect.SetActive(false); } } }
void Start() { levelConfig = ConfigManager.main.GetConfig("LevelConfig") as LevelConfig; handConfig = ConfigManager.main.GetConfig("PlayerHandConfig") as PlayerHandConfig; animator = GetComponent <Animator>(); }