Removing a lot of logging
This commit is contained in:
parent
e88b2248b3
commit
07b63a8426
15 changed files with 9 additions and 67 deletions
|
|
@ -6,7 +6,6 @@ class_name BeeIdle
|
|||
var idle_time : float = 0.0
|
||||
|
||||
func enter(_msg := {}):
|
||||
Log.pr("I sit by idl-bee")
|
||||
#animator.play("Idle")
|
||||
pass
|
||||
|
||||
|
|
@ -15,7 +14,6 @@ func update(delta : float):
|
|||
idle_time += delta
|
||||
|
||||
if idle_time > 2.0:
|
||||
Log.pr("Been idle for 2 seconds, check for something to do...")
|
||||
find_something_to_do()
|
||||
idle_time = 0.0
|
||||
pass
|
||||
|
|
@ -23,10 +21,8 @@ func update(delta : float):
|
|||
func find_something_to_do():
|
||||
if bee.nectar > 0:
|
||||
## Bee has pollen - head home
|
||||
Log.pr(bee, "I have nectar, I should return to the hive")
|
||||
state_transition.emit(self, "Travelling")
|
||||
else:
|
||||
## Bee has no pollen - they should move to a flower
|
||||
Log.pr(bee, "I have no nectar, I should find a flower")
|
||||
state_transition.emit(self, "Travelling")
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue