Exemple #1
0
        private void Start()
        {
            ssr                  = FindObjectOfType <SupportScriptResources>();
            obj                  = FindObjectOfType <ObjectsManagement>();
            flashlight           = this.GetComponent <Light>();
            currentBatteryEnergy = 10f;

            startIntensity = flashlight.intensity;
            isOn           = true;
        }
Exemple #2
0
        private void Start()
        {
            ssr = FindObjectOfType <SupportScriptResources>();
            currentTimeOfTorchLife = torch.charge;
            isOn = false;
            fire.Stop();
            fireLight.enabled = false;
            obj = FindObjectOfType <ObjectsManagement>();

            firech          = fire.gameObject.GetComponentsInChildren <ParticleSystem>();
            fireTimeLeftTot = currentTimeOfTorchLife / 3;
            //15f;
        }