Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        collider        = GetComponent <Collider2D>();
        blinking        = GetComponent <BlinkSprite>();
        camBounds       = Camera.main.GetComponent <CameraUtils>();
        respawn         = Camera.main.transform.FindChild("RespawnPoint");
        BulletExitPoint = transform.FindChild("BulletExitPoint");
        healthUI        = GameObject.Find("HealthBar").GetComponent <HealthManager>();
        currhealth      = character.MaxHealth;
        for (int i = 0; i < currhealth; i++)
        {
            healthUI.AddHeart();
        }

        beams        = new List <GameObject>();
        currCharging = 0;
    }