private void Start() { ssr = FindObjectOfType <SupportScriptResources>(); obj = FindObjectOfType <ObjectsManagement>(); flashlight = this.GetComponent <Light>(); currentBatteryEnergy = 10f; startIntensity = flashlight.intensity; isOn = true; }
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; }
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; }
// Start is called before the first frame update void Start() { plCurrentTime = timeLeft; obj = FindObjectOfType <ObjectsManagement>(); }