Beispiel #1
0
    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;
    }
Beispiel #2
0
    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;
    }