mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Updated tutorial_gdscript_efficiently (markdown)
parent
3e7dcee55e
commit
f0c260dfd3
@ -119,7 +119,7 @@ public final void do_something() {
|
||||
```python
|
||||
|
||||
func use_class(instance); #does not care about class type
|
||||
instance.use() # will work with any class that as a .use() method.
|
||||
instance.use() # will work with any class that has a ".use()" method.
|
||||
|
||||
func do_something():
|
||||
var instance = SomeClass.new() # created as reference
|
||||
|
Loading…
Reference in New Issue
Block a user