Created
January 30, 2023 10:43
-
-
Save Mazday21/8c1717d47744eb3387928105f320108c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ChangeConditionSpawnPoint(float positionZ) | |
{ | |
for (int i = 0; i < _spawnPoints.Length; i++) | |
{ | |
if (_spawnPoints[i].Position.position.z == positionZ) | |
{ | |
_spawnPoints[i].IsEnable = !_spawnPoints[i].IsEnable; | |
break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment