示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     MasterController.Instance.CheckPointReached          += RecordCurrentState;
     MasterController.Instance.RevertToPreviousCheckPoint += RevertToPreviousCheckPoint;
     lm       = GetComponent <LightManager>();
     pControl = FindObjectOfType <AlexanderController>();
     pControl.PlayerIsInsideDarkness += DecreaseCourage;
     sd = FindObjectOfType <ShadowDetector>();
     courageGauge.minValue = minHealth;
     courageGauge.maxValue = maxHealth;
     //courageGauge.value = courageGauge.maxValue;
     DrawHealthBar();
     //StartCoroutine(IncreaseCourage());
 }
 private void Start()
 {
     player = FindObjectOfType <AlexanderController>();
     originalFieldOfView = Camera.main.fieldOfView;
 }