Пример #1
0
 void Start()
 {
     if (this.bulletObject == null)
     {
         UDebug.Error("bullet object not set");
     }
     if (this.collider == null)
     {
         UDebug.Error("bullet collider not set");
     }
 }
Пример #2
0
 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]);
 }
Пример #3
0
 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]);
     }
 }
Пример #4
0
 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]);
     }
 }
Пример #5
0
 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);
 }
Пример #6
0
        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);
        }