private void Start()
    {
        the_Player_UI_HUD = FindObjectOfType <PlayerUIHUD>();
        the_CC            = GetComponent <CharacterController>();
        //set up character stats
        health_Player         = the_Basic_Stats.health;
        health_Player_Current = health_Player;
        speed_Movement        = the_Basic_Stats.speed;
        current_Stamina       = total_Stamina;

        //SwitchWeapon(current_Weapon);//equip 1st weapon at start
    }
예제 #2
0
    public void SetValue()
    {
        //ammo pool
        the_Player_Manager = FindObjectOfType <PlayerManager>();
        the_Ammo_Pool      = FindObjectOfType <AmmoPool>();

        gun_current_Mag_Capacity = gun_Total_Mag_Capacity;
        //set up Weapon UI
        the_Player_UI_HUD = FindObjectOfType <PlayerUIHUD>();
        the_Player_UI_HUD.current_Weapon = this;
        the_Player_UI_HUD.AmmoUpdate(the_Player_Manager.current_Weapon);
        the_Player_UI_HUD.WeaponNameUpdate(the_Player_Manager.current_Weapon);
    }