Hi,
I have problem with this piece of code that change the tag and name on the prefab and not the instantiated object, or is it somewhere else in the code. Could someone please comment on this?
str_flipCardContainer = replayParent_GO.tag;
str_flipCardContainer = str_flipCardContainer.Substring(1); // Remove the "_"
str_flipCardContainer = str_flipCardContainer.Remove(str_flipCardContainer.Length - 1); // Remove the "B"
flipCardContainer_GO = Resources.Load (str_flipCardContainer) as GameObject;
str_flipCardContainer = "_" + str_flipCardContainer;
flipCardContainer_GO.name = str_flipCardContainer;
flipCardContainer_GO.tag = str_flipCardContainer;
flipCardContainer_GO.transform.position = replayParent_GO.transform.position;
flipCardContainer_GO.transform.localEulerAngles = replayParent_GO.transform.localEulerAngles;
flipCardContainer_GO.GetComponent<Renderer> ().sortingOrder = sortOrderForFlip;
sortOrderForFlip++;
Destroy (replayParent_GO);
bigDummyGO = Instantiate (flipCardContainer_GO) as GameObject;
bigDummyGO.name = str_flipCardContainer;