Пример #1
0
    void Start()
    {
        laserSight = GetComponent <LineRenderer>();
        playerGun  = GameObject.Find("Gun_GFX");
        cntrl      = GetComponent <CharacterController>();
        cam        = FindObjectOfType <Camera>();

        currentHP = maxHP;
        healthBar.SetHealth(maxHP);

        stunned = false;
    }