Beispiel #1
0
 public static GameObject CreatePrefab(PowerStruct pow, Transform emitter, Vector2 direction, params Tags[] tags)
 {
     translateVector = pow.distanceForInstantiate * direction;
     auxVector       = emitter.position + translateVector;
     auxObject       = GameObjectExtend.InstantiatePool(pow.prefab, auxVector, Quaternion.identity);
     auxObject.AddTags(tags);
     auxObject.layer = emitter.gameObject.layer;
     return(auxObject);
 }