private void Awake()
        {
            screenUIController  = GameObject.Find("OnScreenUI").GetComponent <ScreenUIController>();
            healthBarController = screenUIController.GetComponentInChildren <HealthBarController>(true);

            postProcessObject = GameObject.FindGameObjectWithTag("PostProcessing");
            if (postProcessObject != null)
            {
                var volume = postProcessObject.GetComponent <PostProcessVolume>();
                volume.profile.TryGetSettings(out damageVolumeSettings);
            }
        }
Exemplo n.º 2
0
 public void InformOfUI(GameObject canvasCameraObj, ScreenUIController screenUIController)
 {
     this.canvasCameraObj    = canvasCameraObj;
     this.screenUIController = screenUIController;
 }
 public void InformOfUI(ScreenUIController screenUIController)
 {
     this.screenUIController = screenUIController;
 }