Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     GameManager.SetScreenFlasher(this.gameObject);
     canvasFader = this.GetComponent <FadeCanvasScript>();
     if (canvasFader == null)
     {
         Debug.LogError(gameObject.ToString() + ": No canvas fader script found!");
     }
     DisableImages();
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     GameManager.SetScreenFlasher(this.gameObject);
     canvasFader = this.GetComponent <FadeCanvasScript>();
     if (canvasFader == null)
     {
         Debug.LogError(gameObject.ToString() + ": No canvas fader script found!");
     }
     DisableImages();
     if (fadeInFromWhite)
     {
         this.GetComponent <CanvasGroup>().alpha = 1;
         DisableImages();
         screenCover.enabled = true;
         screenCover.color   = new Color(1, 1, 1, 1);
         StartCoroutine("WhiteStart");
     }
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Awake()
 {
     canvasFader = this.GetComponent <FadeCanvasScript>();
     // baseWidth = healthbar.rect.width;
     maxHitPoints = boss.healthPoint;
 }
Ejemplo n.º 4
0
 protected override void Awake()
 {
     base.Awake();
     fader = this.GetComponent <FadeCanvasScript>();
 }