示例#1
0
    private void SpawnDrop()
    {
        var spawnPosition = _potato.GetStarSpawnPosition();

        while (_potato.IsInsidePotato(spawnPosition))
        {
            spawnPosition += spawnPosition.normalized * .1f;
        }

        Instantiate(DropPrefab, spawnPosition, Quaternion.identity, _dropParent);
    }