Ejemplo n.º 1
0
    void Start()
    {
        _renderer         = GetComponentInChildren <SpriteRenderer>();
        healthOgColor     = _renderer.color;
        healthColorToLerp = healthOgColor;

        transform.position = transform.position + Vector3.right * 10;
        player             = FindObjectOfType <Player>().transform;

        gun.enabled = false;
        gunRenderer = gun.GetComponent <SpriteRenderer>();

        ogColor = gunRenderer.color;
        toLerp  = ogColor;

        FindObjectOfType <Notification>().ShowBossHealth("Boss", healthBar);
        healthBar.SetMaxHealth(150);
        StartCoroutine(AtStart());
    }