添加PlayMode一键初始化camera位置功能
修改PlayerCamera参数为private
This commit is contained in:
@@ -261,6 +261,19 @@ public class TargetController : MonoBehaviour
|
||||
sceneBlockCon.nowBlock.InitBlock(environmentObj);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Spawns a scene block at a specified position.
|
||||
/// </summary>
|
||||
/// <param name="targetType">The type of the target, determining the type of block to generate.</param>
|
||||
/// <param name="level">The level of the block, affecting its properties.</param>
|
||||
/// <param name="blockNum">The number of the block, used to distinguish different blocks of the same level.</param>
|
||||
/// <param name="blockPosition">The position of the block in the scene.</param>
|
||||
/// <remarks>
|
||||
/// This method first destroys the current block in the scene, then creates a new block based on the provided parameters and initializes it.
|
||||
/// 'sceneBlockCon' is responsible for managing the creation, destruction, and initialization of scene blocks.
|
||||
/// 'commonParamCon' provides additional parameters required for block creation.
|
||||
/// 'environmentObj' is used during the initialization process of the block.
|
||||
/// </remarks>
|
||||
private void SpawnSceneBlock(Targets targetType, int level,int blockNum, Vector3 blockPosition)
|
||||
{
|
||||
sceneBlockCon.DestroyBlock();
|
||||
|
||||
Reference in New Issue
Block a user