Skip to content

Commit ba0ec5d

Browse files
committed
tutorial tweaks that are not necessary but will make the tutorial a bit easier:
removed unnecessary calls in ShooterControls::onRemoveBehavior fixed a bad reference to caustics particle effect
1 parent 4a6b976 commit ba0ec5d

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

modules/TropicalAssets/1/assets/particles/caustics.asset.taml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
EmitterSize="100 1"
77
FixedAspect="false"
88
OldestInFront="1"
9-
Image="@asset=AquariumToy:Beam">
9+
Image="@asset=ToyAssets:Beam">
1010
<ParticleAssetEmitter.Fields>
1111
<Quantity
1212
Keys="0 1" />

tutorials/fishTutorialBase/modules/DeadlyReef/scripts/behaviors/movement/shooterControls.cs

-7
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,10 @@
5858
if (!isObject(GlobalActionMap))
5959
return;
6060

61-
%this.owner.disableUpdateCallback();
62-
6361
GlobalActionMap.unbindObj(getWord(%this.upKey, 0), getWord(%this.upKey, 1), %this);
6462
GlobalActionMap.unbindObj(getWord(%this.downKey, 0), getWord(%this.downKey, 1), %this);
6563
GlobalActionMap.unbindObj(getWord(%this.leftKey, 0), getWord(%this.leftKey, 1), %this);
6664
GlobalActionMap.unbindObj(getWord(%this.rightKey, 0), getWord(%this.rightKey, 1), %this);
67-
68-
%this.up = 0;
69-
%this.down = 0;
70-
%this.left = 0;
71-
%this.right = 0;
7265
}
7366

7467
function ShooterControlsBehavior::updateMovement(%this)

0 commit comments

Comments
 (0)