CallMethod() public method

public CallMethod ( LuaFunction &cFunc, string strFunc ) : object
cFunc SLua.LuaFunction
strFunc string
return object
Example #1
0
 // Destroy this child gameobject, this can be called from an Animation Event.
 public void DestroyChildGameObject()
 {
     if (m_bReady)
     {
         m_cBehavior.CallMethod(ref m_cDestroyChildObj, "DestroyChildGameObject", m_cBehavior.GetChunk());
     }
 }
Example #2
0
 /**
  * Call the lua "DeliverPickup" function.
  *
  * @param void.
  * @return void.
  */
 public void DeliverPickup()
 {
     if (m_bReady)
     {
         m_cBehavior.CallMethod(ref m_cDeliverPickupFunc, m_strDeliverPickup, m_cBehavior.GetChunk());
     }
 }
Example #3
0
 /**
  * Update player health bar.
  *
  * @param void.
  * @return void.
  */
 public void UpdateHealthBar()
 {
     if (m_bReady)
     {
         m_cBehavior.CallMethod(ref m_cUpdateHealthFunc, m_strUpdateHealthFunc, m_cBehavior.GetChunk());
     }
 }
 /**
  * The taunt function.
  *
  * @param void.
  * @return void.
  */
 public void Taunt()
 {
     if (m_bReady)
     {
         m_cBehavior.CallMethod(ref m_cTauntFunc, m_strTauntFunc, m_cBehavior.GetChunk());
     }
 }
Example #5
0
 /**
  * Call the lua function "Explode".
  *
  * @param void.
  * @return void.
  */
 public void Explode()
 {
     if (m_bReady)
     {
         m_cBehavior.CallMethod(ref m_cExplodeFunc, m_strExplodeFunc, m_cBehavior.GetChunk());
     }
 }