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

            startIntensity = flashlight.intensity;
            isOn           = true;
        }
Пример #2
0
        private void Start()
        {
            currentTimeOfMatchLife = match.charge;
            isOn = false;
            fire.Stop();
            fireLight.enabled = false;
            obj = FindObjectOfType <ObjectsManagement>();

            firech          = fire.gameObject.GetComponentsInChildren <ParticleSystem>();
            fireTimeLeftTot = currentTimeOfMatchLife / 3;
            //15f;
        }
Пример #3
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;
        }
Пример #4
0
 // Start is called before the first frame update
 void Start()
 {
     plCurrentTime = timeLeft;
     obj           = FindObjectOfType <ObjectsManagement>();
 }