示例#1
0
    // 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;
    }
示例#2
0
    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();
        }
    }
示例#3
0
 // Start is called before the first frame update
 void Awake()
 {
     lightFlickerEffect = GetComponent <LightFlickerEffect>();
     lightObj           = GetComponent <Light2D>();
 }