Beispiel #1
0
    public void SpawnStone(int stoneId)
    {
        Quaternion rt = StoneSpawnHelper.GetStoneRotationById(stoneId);
        Vector3    sp = spawnPoint.position + StoneSpawnHelper.GetStoneSpawnPointOffsetById(stoneId);

        SpawnStoneWithPositionAndRotation(stoneId, sp, rt);
    }
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;
    }