예제 #1
0
 private void Awake()
 {
     eInputMode    = EInputMode.FREEMOVEMENT;
     eState        = EState.NORMAL;
     m_Rigidbody2D = GetComponent <Rigidbody2D>();
     cPlayerInput  = this.GetComponent <CPlayerInput>();
 }
예제 #2
0
 public override void OnUse(CPlayerInput cPlayerInput)
 {
     if (!base.used)
     {
         if (cPlayerInput.cInventario.getItemAmount(EItem.BRANCH) > 0)
         {
             base.used = true;
             print("mayor a 0");
             cPlayerInput.cInventario.removeItem(EItem.BRANCH);
             Encender();
         }
     }
 }
예제 #3
0
 public abstract void OnUse(CPlayerInput cPlayerInput);