public place2d ( Transform transform, float ratio ) : void | ||
transform | Transform | |
ratio | float | |
return | void |
static public int place2d(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif LTSpline self = (LTSpline)checkSelf(l); UnityEngine.Transform a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); self.place2d(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
void Update() { s.place2d(ltLogo.transform, iter); iter += Time.deltaTime * 0.1f; if (iter > 1f) { iter = 0f; } }
void Update() { cr.place2d(sprite1.transform, iter); iter += Time.deltaTime * 0.1f; if (iter > 1.0f) { iter = 0.0f; } }
static public int place2d(IntPtr l) { try { LTSpline self = (LTSpline)checkSelf(l); UnityEngine.Transform a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); self.place2d(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int place2d(IntPtr l) { try { LTSpline self = (LTSpline)checkSelf(l); UnityEngine.Transform a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); self.place2d(a1, a2); return(0); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static int place2d(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); LTSpline obj = (LTSpline)ToLua.CheckObject(L, 1, typeof(LTSpline)); UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform)); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); obj.place2d(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private void GiveCardToHand(List <Card> deck, Transform hand, int i) { if (deck.Count == 0) { return; } Card card = deck[0]; GameObject cardGO = Instantiate(cardPref, hand, false); LTSpline spline = new LTSpline(path); spline.place2d(cardGO.transform, .2f * i); LeanTween.move(cardGO, path[i], .1f); cardGO.GetComponent <CardInfo>().ShowCardInfo(card); playerHandCards.Add(cardGO.GetComponent <CardInfo>()); deck.RemoveAt(0); }