I want to know how to select a gameObject i want to use here. Here is the thing: this file die.cs is added to my player object, and i need to temporary hide 1 other object by sending it to coordinates 3.5,0,-20 , so when i use this line, it hides the player, but doesnt do anything to object i need to hide (tag == “cube6”)
iTween.MoveTo (gameObject, iTween.Hash ("position", new Vector3 (3.5f, 0.0f, -20), "time", 3.0f, "oncomplete", "setPosAndSpeed", "oncompletetarget", gameObject.tag = "cube6"));
How to select what object i want to use… I tried making another file but i need this line in this file couse i have same variables that i need to use for player object…
Please help