This commit is contained in:
joylink_zhaoerwei 2024-07-29 11:47:16 +08:00
parent 37442e4f27
commit c901059e7c

View File

@ -333,7 +333,7 @@ func stopGeneratePeopleAtD() -> void:
##A入口生成
var totalOfAEntrance=0
func generatePeopleAtAEntrance() -> void:
if totalOfAEntrance > 30:
if totalOfAEntrance == 30:
$AllTimer/generatePeopleAEntranceTimer.wait_time = 3
if $AllAreaDetection/APassageAreaDetection.passPeopleCount< 1 and currentActiveCameraOfLarge != Camera_name.APassage:
generatePeopleAPassage()
@ -436,7 +436,7 @@ func generatePeopleAtCEntrance() -> void:
var totalOfDEntrance = 0
func generatePeopleAtDEntrance() -> void:
totalOfDEntrance += 1
if totalOfDEntrance > 10:
if totalOfDEntrance == 10:
$AllTimer/generatePeopleDEntranceTimer.wait_time = 6
var peoplePosition = Vector3(146.12,9.8,46)
generatePeopleAtDesignatedArea(peoplePosition,PlayerWalkArea3D.entrance,'D','D{0}'.format([totalOfDEntrance]))