void Start() { if (this.bulletObject == null) { UDebug.Error("bullet object not set"); } if (this.collider == null) { UDebug.Error("bullet collider not set"); } }
public int GetTweenIDAt(int index) { /* * if (leanTweenIDs == null) { * leanTweenIDs = new List<int> (); * } */ if (index >= leanTweenIDs.Count || index < 0) { UDebug.Error("cannot find tween sequence of the given index"); } return(leanTweenIDs [index]); }
public Tweener GetTweenerAt(int index) { /* * if (doTweenTweeners == null) { * doTweenTweeners = new List<Tweener> (); * } */ if (index >= doTweenTweeners.Count || index < 0) { UDebug.Error("cannot find DOTween Tweener of the given index"); return(null); } else { return(doTweenTweeners [index]); } }
public Sequence GetSequenceAt(int index) { /* * if (doTweenSequences == null) { * doTweenSequences = new List<Sequence> (); * } */ if (index >= doTweenSequences.Count || index < 0) { UDebug.Error("cannot find DOTween Sequence of the given index"); return(null); } else { return(doTweenSequences [index]); } }
public UDOTweenPlug KillTweenerAt(int index) { /* * if (doTweenTweeners == null) { * doTweenTweeners = new List<Tweener> (); * } */ if (index >= doTweenTweeners.Count || index < 0) { UDebug.Error("cannot find DOTween Tweener of the given index, kill fails"); } else { doTweenTweeners [index].Kill(); doTweenTweeners.RemoveAt(index); // Removing tweener reference. SLOW!!! But this is RARE, so it should be okay } return(this); }
public ULeanTweenPlug KillTweenAt(int index) { /* * if (leanTweenIDs == null) { * leanTweenIDs = new List<int> (); * } */ if (index >= leanTweenIDs.Count || index < 0) { UDebug.Error("cannot find tween sequence of the given index, kill fails"); } else { LeanTween.cancel(leanTweenIDs [index]); leanTweenIDs.RemoveAt(index); // Removing tween reference. SLOW!!! But this is RARE, so it should be okay } return(this); }