Esempio n. 1
0
    public static int Clear(IntPtr l)
    {
        int result;

        try
        {
            FxPlayer fxPlayer = (FxPlayer)LuaObject.checkSelf(l);
            fxPlayer.Clear();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 2
0
    public static int get_m_parentGameObject(IntPtr l)
    {
        int result;

        try
        {
            FxPlayer fxPlayer = (FxPlayer)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, fxPlayer.m_parentGameObject);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 3
0
    public static int SetDefaultParent(IntPtr l)
    {
        int result;

        try
        {
            FxPlayer   fxPlayer = (FxPlayer)LuaObject.checkSelf(l);
            GameObject defaultParent;
            LuaObject.checkType <GameObject>(l, 2, out defaultParent);
            fxPlayer.SetDefaultParent(defaultParent);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 4
0
    public static int set_m_parentGameObject(IntPtr l)
    {
        int result;

        try
        {
            FxPlayer   fxPlayer = (FxPlayer)LuaObject.checkSelf(l);
            GameObject parentGameObject;
            LuaObject.checkType <GameObject>(l, 2, out parentGameObject);
            fxPlayer.m_parentGameObject = parentGameObject;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 5
0
    public static int Tick(IntPtr l)
    {
        int result;

        try
        {
            FxPlayer fxPlayer = (FxPlayer)LuaObject.checkSelf(l);
            float    dt;
            LuaObject.checkType(l, 2, out dt);
            fxPlayer.Tick(dt);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 6
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            GraphicPool pool;
            LuaObject.checkType <GraphicPool>(l, 2, out pool);
            FxPlayer o = new FxPlayer(pool);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 7
0
    public static int PauseAll(IntPtr l)
    {
        int result;

        try
        {
            FxPlayer fxPlayer = (FxPlayer)LuaObject.checkSelf(l);
            bool     pause;
            LuaObject.checkType(l, 2, out pause);
            fxPlayer.PauseAll(pause);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 8
0
    public static int Play(IntPtr l)
    {
        int result;

        try
        {
            FxPlayer fxPlayer = (FxPlayer)LuaObject.checkSelf(l);
            string   assetName;
            LuaObject.checkType(l, 2, out assetName);
            GenericGraphic o = fxPlayer.Play(assetName);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 9
0
 private void OnCollisionDetected(IAsteroid asteroid, Vector3 pos)
 {
     FxPlayer.PlaySmallBlast(pos);
     RemoveAsteroid(asteroid);
     SpaceShip.Hp--;
 }