public void SpawnStoneWithPositionAndRotation(int stoneId, Vector3 sp, Quaternion rt) { float scale = StoneSpawnHelper.GetStoneScaleById(stoneId); GameObject obj = Instantiate(LoadObjectFromBundle.sceneStones[stoneId - 1], sp, rt); obj.transform.localScale *= scale; }
public void SpawnStone(int stoneId) { float scale = StoneSpawnHelper.GetStoneScaleById(stoneId); Vector3 pos = stone.transform.position; Quaternion q = StoneSpawnHelper.GetStoneRotationById(stoneId); stone = Instantiate(LoadObjectFromBundle.sceneStones[stoneId - 1], pos, q); stone.transform.localScale *= scale; }