private GameObject PlaceTrap(GameObject trap, GameObject tile, script_Tile tileScript)
        {
            var newTrap = Instantiate(trap, tile.transform.position, Quaternion.identity);

            tileScript.myTrap = newTrap;
            return(newTrap);
        }
Пример #2
0
 private GameObject PlaceArtifact(GameObject artifact, GameObject tile, script_Tile tileScript)
 {
     CmdSpawnArtifact(artifact.name, name + artifactCount);
     GameObject.Find(artifact.name + name + artifactCount).transform.position = tile.transform.position;
     tileScript.items.Add(GameObject.Find(artifact.name + name + artifactCount));
     return(GameObject.Find(artifact.name + name + artifactCount));
 }