Inheritance: MonoBehaviour
Example #1
0
 static int Update(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         NcEffectFlying obj = (NcEffectFlying)ToLua.CheckObject <NcEffectFlying>(L, 1);
         obj.Update();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Example #2
0
    static int get_FromPos(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NcEffectFlying      obj = (NcEffectFlying)o;
            UnityEngine.Vector3 ret = obj.FromPos;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index FromPos on a nil value"));
        }
    }
Example #3
0
    static int set_HWRate(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NcEffectFlying obj  = (NcEffectFlying)o;
            float          arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.HWRate = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index HWRate on a nil value"));
        }
    }
Example #4
0
    static int set_ToPos(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NcEffectFlying      obj  = (NcEffectFlying)o;
            UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
            obj.ToPos = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ToPos on a nil value"));
        }
    }
Example #5
0
    static int get_HWRate(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            NcEffectFlying obj = (NcEffectFlying)o;
            float          ret = obj.HWRate;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index HWRate on a nil value"));
        }
    }
Example #6
0
        public void displaySkill(KBEngine.Entity caster, KBEngine.Entity target)
        {
            if (displayType == Skill_DisplayType.SkillDisplay_Event_Bullet)
            {
                UnityEngine.GameObject renderObj = UnityEngine.Object.Instantiate(SkillBox.inst.dictSkillDisplay[skillEffect]) as UnityEngine.GameObject;

                NcEffectFlying fly = renderObj.AddComponent <NcEffectFlying>();
                fly.FromPos   = caster.position;
                fly.FromPos.y = 1f;
                fly.ToPos     = target.position;
                fly.ToPos.y   = 1f;
                //fly.Speed = 5.0f;
                //fly.HWRate = 0;
            }
            else if (displayType == Skill_DisplayType.SkillDisplay_Event_Effect)
            {
                Vector3 pos = target.position;
                pos.y = 1f;
                UnityEngine.Object.Instantiate(SkillBox.inst.dictSkillDisplay[skillEffect], pos, Quaternion.identity);
            }
        }