// Use this for initialization protected override void Start() { // NAO CODIFICAR NESSA AREA. SOMENTE SE NECESSARIO base.Start(); // Codifique daqui para baixo; myCamera = Camera.main; base.CharacterType = ENUMERATORS.Character.CharacterTypeEnum.Player; // Initialize o controle de skills PlayerSkillSet = new PlayerSkills(); PlayerSkillSet.InitializePlayerSkills(this); CurrentGranade = null; _laserLineRenderer = GetComponent<LineRenderer>(); if (_laserLineRenderer != null) { _laserLineRenderer.enabled = true; _laserPoint = new GameObject(string.Concat(this.name, "LaserSpotLight"), typeof(Light)); _laserPoint.transform.SetParent(this.gameObject.transform); _laserPointLight = _laserPoint.GetComponent<Light>(); _laserPointLight.type = LightType.Spot; _laserPointLight.enabled = true; _laserPointLight.shadows = LightShadows.None; _laserPointLight.color = _laserLineRenderer.material.GetColor("_EmissionColor"); _laserPointLight.spotAngle = 20f; _laserPointLight.intensity = 4.5f; _laserPointLight.range = 1f; _laserPointLight.bounceIntensity = 0; } }