Esempio n. 1
0
    static int OnSteal(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        PlayerState_Steal obj = (PlayerState_Steal)LuaScriptMgr.GetNetObjectSelf(L, 1, "PlayerState_Steal");

        obj.OnSteal();
        return(0);
    }
Esempio n. 2
0
    /*
     * public void OnGetUp()
     * {
     *      PlayerState_FallGround fallGround = m_Owner.m_StateMachine.m_curState as PlayerState_FallGround;
     *      if( fallGround != null )
     *              fallGround.m_step = PlayerState_FallGround.Step.riseUp;
     * }
     */

    public void OnSteal()
    {
        PlayerState_Steal steal = _owner.m_StateMachine.m_curState as PlayerState_Steal;

        if (steal != null)
        {
            steal.OnSteal();
        }
    }