// Start is called before the first frame update
 void Start()
 {
     hp = maxHp;
     sp = maxSp;
     ms = 10;
     playerUIManager.Init(this);
     rb       = GetComponent <Rigidbody>();
     animator = GetComponent <Animator>();
     DisableWeaponCollider();
 }
Exemple #2
0
 void Start()
 {
     hp = maxHp;
     sp = maxSp;
     playerUIManager.Init(this);
     rb          = GetComponent <Rigidbody>();
     anim        = GetComponent <Animator>();
     audioSource = GetComponent <AudioSource>();
     HideColliderWeapon();
 }
Exemple #3
0
    void Start()
    {
        if (isDie)
        {
            return;
        }

        hp = maxHp;
        PlayerUIManager.Init(this);
        rb       = GetComponent <Rigidbody>();
        animator = GetComponent <Animator>();
        HideColliderWeapon();
    }