// Use this for initialization
 void Start()
 {
     RB           = GetComponent <Rigidbody>();
     playerStatus = GetComponent <Player_status>();
     playerHUD    = GetComponent <Player_hud>();
     playerEquip  = GetComponent <Player_equip>();
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     playerHandler = GetComponent <Player_handler>();
     playerStatus  = GetComponent <Player_status>();
 }
예제 #3
0
 // Potions only affect the player using them.
 public virtual void OnUse(Player_status ps)
 {
 }
예제 #4
0
 public override void OnUse(Player_status ps)
 {
     ps.Heal(healAmount);
 }