// Use this for initialization void Start() { //pairnoyme to script gia to lightflicker toy fakou pou 8a kanoume pio katw lightFlicker = FPS_player.GetComponent <LightFlickerEffect> (); //pairnoyme thn arxikh 8esh tou paixth startPosition = transform.position; iconFlash.enabled = true; }
private void Start() { //init material = GetComponent <Renderer>().material; emissionColor = material.GetColor("_EmissionColor"); lfe = GetComponent <LightFlickerEffect>(); maxIntensity = lightPrefab.GetComponentInChildren <Light>().intensity; if (!lit) //se luce è spenta { TurnOffLight(); } else { TurnOnLight(); } }
// Start is called before the first frame update void Awake() { lightFlickerEffect = GetComponent <LightFlickerEffect>(); lightObj = GetComponent <Light2D>(); }