Exemplo n.º 1
0
 public static UnityEngine.GameObject InstantiateWithAutodestroy(UnityEngine.GameObject effectTemplate)
 {
     UnityEngine.GameObject effect = InstantiateAndLink(effectTemplate, null, "", false, false);
     Finder.FindComponentAddIfNotExist <Duration>(effect);
     return(effect);
 }
Exemplo n.º 2
0
 public static UnityEngine.GameObject InstantiateAndLinkWithAutodestroy(UnityEngine.GameObject effectTemplate, UnityEngine.GameObject toObjPos, string preferedChildName)
 {
     UnityEngine.GameObject effect = InstantiateAndLink(effectTemplate, toObjPos, preferedChildName, false, false);
     Finder.FindComponentAddIfNotExist <Duration>(effect);
     return(effect);
 }
Exemplo n.º 3
0
 public static UnityEngine.GameObject InstantiateAtPosWithAutodestroy(UnityEngine.GameObject effectTemplate, UnityEngine.GameObject toObjPos, float time)
 {
     UnityEngine.GameObject effect = InstantiateAndLink(effectTemplate, toObjPos, null, true, false);
     Finder.FindComponentAddIfNotExist <Duration>(effect).SetDuration(time);
     return(effect);
 }
Exemplo n.º 4
0
 public static UnityEngine.GameObject InstantiateAndLinkWithAutodestroy(UnityEngine.GameObject effectTemplate, UnityEngine.GameObject toObjPos, bool inheritSorting)
 {
     UnityEngine.GameObject effect = InstantiateAndLink(effectTemplate, toObjPos, null, false, inheritSorting);
     Finder.FindComponentAddIfNotExist <Duration>(effect);
     return(effect);
 }
Exemplo n.º 5
0
 public static UnityEngine.GameObject InstantiateAtPosWithAutodestroy(UnityEngine.GameObject effectTemplate, UnityEngine.GameObject toObjPos)
 {
     UnityEngine.GameObject effect = InstantiateAtPosWithAutodestroy(effectTemplate, toObjPos, -1);
     Finder.FindComponentAddIfNotExist <Duration>(effect);
     return(effect);
 }