Credits and Transition done #454

Merged
glencelow merged 6 commits from PlayerController into main 2023-04-01 18:09:04 +08:00
26 changed files with 582 additions and 87 deletions

Binary file not shown.

View File

@ -1,3 +1,3 @@
Name: Level3_NavData Name: Level3_NavData
ID: 263362242 ID: 252819653
Type: 15 Type: 15

View File

@ -0,0 +1,174 @@
- NavData: 0
- EID: 0
Name: Camera
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 0, y: 0, z: 0}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1}
IsActive: true
Camera Component:
Position: {x: 0, y: 0, z: 0}
Pitch: 0
Yaw: 0
Roll: 0
Width: 1920
Near: 0.00999999978
Far: 10000
Perspective: true
FOV: 90
IsActive: true
Scripts: ~
- EID: 46
Name: Credits Canvas
IsActive: true
NumberOfChildren: 3
Components:
Canvas Component:
Canvas Width: 1920
Canvas Height: 1080
Scale by canvas width: false
IsActive: true
Scripts: ~
- EID: 47
Name: Scrolling Credits
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 0, y: -3800, z: 1.5}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1920, y: 8026, z: 1}
IsActive: true
Renderable Component:
Mesh: 141771688
Material: 120332672
IsActive: true
UI Component:
Canvas ID: 46
Hovered: false
Clicked: false
IsActive: true
Scripts:
- Type: SHADE_Scripting.UI.ScrollingCredits
Enabled: true
endY: 4300
duration: 27
levelTransition: 619
- Type: SHADE_Scripting.UI.TransitToMainMenu
Enabled: true
timeToTransit: 27
sceneToChange: 97158628
- EID: 49
Name: Credits Title Text
IsActive: false
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: -150, y: 400, z: 0.100000001}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 100, y: 100, z: 1}
IsActive: false
Text Renderer Component:
Text: Credits
Font: 174412429
Color: {x: 0, y: 0, z: 0, w: 1}
Text Size: {x: 1, y: 1, z: 1}
IsActive: false
UI Component:
Canvas ID: 46
Hovered: false
Clicked: false
IsActive: false
Scripts: ~
- EID: 55
Name: BackGround
IsActive: false
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 0, y: 0, z: 1.5}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1920, y: 1080, z: 1}
IsActive: false
Renderable Component:
Mesh: 141771688
Material: 121834459
IsActive: false
UI Component:
Canvas ID: 46
Hovered: false
Clicked: false
IsActive: false
Scripts: ~
- EID: 54
Name: TweenManager
IsActive: true
NumberOfChildren: 0
Components: ~
Scripts:
- Type: TweenManager
Enabled: true
- EID: 619
Name: LevelTransistionCanvas
IsActive: true
NumberOfChildren: 2
Components:
Canvas Component:
Canvas Width: 1920
Canvas Height: 1080
Scale by canvas width: false
IsActive: true
Scripts:
- Type: LevelTransistion
Enabled: true
logo: 618
bg: 617
duration: 0.5
bgEndPositionX: 3000
logoEndPositionX: 3000
rotAndScale: false
rotationAmt: 360
scaleAmt: 631
- EID: 618
Name: LevelTransistionLogo
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 0, y: 0, z: 0.100000001}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 631, y: 631, z: 1}
IsActive: true
Renderable Component:
Mesh: 141771688
Material: 126117259
IsActive: true
UI Component:
Canvas ID: 619
Hovered: false
Clicked: false
IsActive: true
Scripts: ~
- EID: 617
Name: LevelTransistionBG
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 0, y: 0, z: 0.200000003}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 4000, y: 4000, z: 1}
IsActive: true
Renderable Component:
Mesh: 141771688
Material: 132131066
IsActive: true
UI Component:
Canvas ID: 619
Hovered: false
Clicked: false
IsActive: true
Scripts: ~

View File

@ -0,0 +1,3 @@
Name: CreditsScene
ID: 97376761
Type: 5

View File

@ -1,3 +1,4 @@
- NavData: 0
- EID: 1 - EID: 1
Name: Canvas4 Name: Canvas4
IsActive: true IsActive: true
@ -152,7 +153,7 @@
Scripts: Scripts:
- Type: CutsceneEnd - Type: CutsceneEnd
Enabled: true Enabled: true
nextScene: 92009475 nextScene: 97376761
duration: 1 duration: 1
skipDuration: 0.100000001 skipDuration: 0.100000001
cutscene4Points: 4 cutscene4Points: 4
@ -161,6 +162,7 @@
cutscene5Pics: 15 cutscene5Pics: 15
canvas4: 1 canvas4: 1
canvas5: 14 canvas5: 14
levelTransition: 619
- EID: 4 - EID: 4
Name: CutScene4Points Name: CutScene4Points
IsActive: true IsActive: true
@ -288,7 +290,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 250, y: -500, z: 0.100000001} Translate: {x: 250, y: -500, z: 0.300000012}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 50, y: 50, z: 50} Scale: {x: 50, y: 50, z: 50}
IsActive: true IsActive: true
@ -331,4 +333,73 @@
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
- EID: 619
Name: LevelTransistionCanvas
IsActive: true
NumberOfChildren: 2
Components:
Canvas Component:
Canvas Width: 1920
Canvas Height: 1080
Scale by canvas width: false
IsActive: true
Scripts:
- Type: LevelTransistion
Enabled: true
logo: 618
bg: 617
duration: 0.5
bgEndPositionX: 3000
logoEndPositionX: 3000
rotAndScale: false
rotationAmt: 360
scaleAmt: 631
- EID: 618
Name: LevelTransistionLogo
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 0, y: 0, z: 0.100000001}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 631, y: 631, z: 1}
IsActive: true
Renderable Component:
Mesh: 141771688
Material: 126117259
IsActive: true
UI Component:
Canvas ID: 619
Hovered: false
Clicked: false
IsActive: true
Scripts: ~
- EID: 617
Name: LevelTransistionBG
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 0, y: 0, z: 0.200000003}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 4000, y: 4000, z: 1}
IsActive: true
Renderable Component:
Mesh: 141771688
Material: 132131066
IsActive: true
UI Component:
Canvas ID: 619
Hovered: false
Clicked: false
IsActive: true
Scripts: ~
- EID: 616
Name: TweenManager
IsActive: true
NumberOfChildren: 0
Components: ~
Scripts:
- Type: TweenManager
Enabled: true

View File

@ -1,3 +1,4 @@
- NavData: 0
- EID: 1 - EID: 1
Name: Canvas1 Name: Canvas1
IsActive: true IsActive: true
@ -164,6 +165,7 @@
canvas1: 1 canvas1: 1
canvas2: 13 canvas2: 13
canvas3: 24 canvas3: 24
levelTransition: 619
- EID: 4 - EID: 4
Name: CutScene1Points Name: CutScene1Points
IsActive: true IsActive: true
@ -177,7 +179,7 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: -550, y: 0, z: 0.5} Translate: {x: -550, y: 0, z: 0.5}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 500.5, y: -274.5, z: 0.600000024}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
@ -394,7 +396,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: -1375, y: 250, z: 0.5} Translate: {x: -1375, y: 250, z: 0.899999976}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 982, y: 527, z: 1} Scale: {x: 982, y: 527, z: 1}
IsActive: true IsActive: true
@ -414,7 +416,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 200, y: 1200, z: 0.400000006} Translate: {x: 200, y: 1200, z: 0.800000012}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 625, y: 579, z: 1} Scale: {x: 625, y: 579, z: 1}
IsActive: true IsActive: true
@ -434,7 +436,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 1700, y: 200, z: 0.300000012} Translate: {x: 1700, y: 200, z: 0.699999988}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 529, y: 670, z: 1} Scale: {x: 529, y: 670, z: 1}
IsActive: true IsActive: true
@ -454,7 +456,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: -1600, y: -200, z: 0.5} Translate: {x: -1600, y: -200, z: 0.899999976}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1299, y: 575, z: 1} Scale: {x: 1299, y: 575, z: 1}
IsActive: true IsActive: true
@ -474,7 +476,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 500, y: -1275, z: 0.5} Translate: {x: 500, y: -1275, z: 0.899999976}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 866, y: 483, z: 1} Scale: {x: 866, y: 483, z: 1}
IsActive: true IsActive: true
@ -494,7 +496,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 0, y: 0, z: 0.699999988} Translate: {x: 0, y: 0, z: 0.99000001}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1920, y: 1080, z: 1} Scale: {x: 1920, y: 1080, z: 1}
IsActive: true IsActive: true
@ -514,7 +516,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 250, y: -500, z: 0.100000001} Translate: {x: 250, y: -500, z: 0.400000006}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 50, y: 50, z: 50} Scale: {x: 50, y: 50, z: 50}
IsActive: true IsActive: true
@ -542,7 +544,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: -375, y: 250, z: 0.5} Translate: {x: -375, y: 250, z: 0.899999976}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
@ -553,7 +555,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 200, y: 200, z: 0.400000006} Translate: {x: 200, y: 200, z: 0.800000012}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
@ -564,7 +566,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 700, y: 200, z: 0.300000012} Translate: {x: 700, y: 200, z: 0.699999988}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
@ -575,7 +577,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: -225, y: -200, z: 0.200000003} Translate: {x: -225, y: -200, z: 0.600000024}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
@ -586,8 +588,77 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 500, y: -275, z: 0.100000001} Translate: {x: 500, y: -275, z: 0.5}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
Scripts: ~ Scripts: ~
- EID: 619
Name: LevelTransistionCanvas
IsActive: true
NumberOfChildren: 2
Components:
Canvas Component:
Canvas Width: 1920
Canvas Height: 1080
Scale by canvas width: false
IsActive: true
Scripts:
- Type: LevelTransistion
Enabled: true
logo: 618
bg: 617
duration: 0.5
bgEndPositionX: 3000
logoEndPositionX: 3000
rotAndScale: false
rotationAmt: 360
scaleAmt: 631
- EID: 618
Name: LevelTransistionLogo
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 0, y: 0, z: 0.100000001}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 631, y: 631, z: 1}
IsActive: true
Renderable Component:
Mesh: 141771688
Material: 126117259
IsActive: true
UI Component:
Canvas ID: 619
Hovered: false
Clicked: false
IsActive: true
Scripts: ~
- EID: 617
Name: LevelTransistionBG
IsActive: true
NumberOfChildren: 0
Components:
Transform Component:
Translate: {x: 0, y: 0, z: 0.200000003}
Rotate: {x: 0, y: 0, z: 0}
Scale: {x: 4000, y: 4000, z: 1}
IsActive: true
Renderable Component:
Mesh: 141771688
Material: 132131066
IsActive: true
UI Component:
Canvas ID: 619
Hovered: false
Clicked: false
IsActive: true
Scripts: ~
- EID: 616
Name: TweenManager
IsActive: true
NumberOfChildren: 0
Components: ~
Scripts:
- Type: TweenManager
Enabled: true

View File

@ -9544,6 +9544,7 @@
maxCombo: 621 maxCombo: 621
finalScore: 620 finalScore: 620
contiuneBtn: 624 contiuneBtn: 624
levelTransition: 619
nextScene: 86098106 nextScene: 86098106
scoreTweenDur: 2 scoreTweenDur: 2
- EID: 624 - EID: 624

View File

@ -17510,6 +17510,7 @@
maxCombo: 612 maxCombo: 612
finalScore: 610 finalScore: 610
contiuneBtn: 623 contiuneBtn: 623
levelTransition: 608
nextScene: 88928066 nextScene: 88928066
scoreTweenDur: 2 scoreTweenDur: 2
- EID: 623 - EID: 623

View File

@ -1,4 +1,4 @@
- NavData: 263362242 - NavData: 252819653
- EID: 0 - EID: 0
Name: Light_Direction Name: Light_Direction
IsActive: true IsActive: true
@ -6,7 +6,7 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: -4.64838362, y: 2.94342947, z: 0.209690213} Translate: {x: -4.64838362, y: 2.94342947, z: 0.209690213}
Rotate: {x: 6.41686916, y: 0.727440596, z: 2.90124035} Rotate: {x: 2.99841309, y: 1.61244416, z: -0.287879944}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
Light Component: Light Component:
@ -3626,7 +3626,7 @@
Components: Components:
Transform Component: Transform Component:
Translate: {x: 2.75, y: 0, z: 6.25} Translate: {x: 2.75, y: 0, z: 6.25}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: -0, y: 0, z: -0}
Scale: {x: 0.75, y: 0.75, z: 0.75} Scale: {x: 0.75, y: 0.75, z: 0.75}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
@ -5367,7 +5367,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 3.25, y: 0, z: 7.55967045} Translate: {x: 3.47301221, y: 0, z: 8.17157459}
Rotate: {x: -0, y: 0, z: -0} Rotate: {x: -0, y: 0, z: -0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
@ -10590,7 +10590,7 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 2.91941047, y: 0.527999997, z: 7.41522264} Translate: {x: 2.91941047, y: 0.527999997, z: 8.10036278}
Rotate: {x: -0, y: 0, z: -0} Rotate: {x: -0, y: 0, z: -0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
@ -14794,8 +14794,8 @@
NumberOfChildren: 0 NumberOfChildren: 0
Components: Components:
Transform Component: Transform Component:
Translate: {x: 3.65231538, y: 0.438600183, z: 7.60280371} Translate: {x: 3.65231538, y: 0.438600183, z: 8.16182518}
Rotate: {x: 0, y: 0, z: 0} Rotate: {x: -0, y: 0, z: -0}
Scale: {x: 1, y: 1, z: 1} Scale: {x: 1, y: 1, z: 1}
IsActive: true IsActive: true
Renderable Component: Renderable Component:
@ -15265,7 +15265,13 @@
Color Decay: {x: 0, y: 0, z: 0, w: 0} Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.100000001, z: 0} Acceleration: {x: 0, y: -0.100000001, z: 0}
IsActive: true IsActive: true
Scripts: ~ Scripts:
- Type: DecorationAudio
Enabled: true
name: spark1
audio: event:/Props/sparks
loop: false
timeDruation: 2.29999995
- EID: 608 - EID: 608
Name: Light particles Name: Light particles
IsActive: true IsActive: true
@ -15299,7 +15305,13 @@
Color Decay: {x: 0, y: 0, z: 0, w: 0} Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.100000001, z: 0} Acceleration: {x: 0, y: -0.100000001, z: 0}
IsActive: true IsActive: true
Scripts: ~ Scripts:
- Type: DecorationAudio
Enabled: true
name: spark2
audio: event:/Props/sparks
loop: false
timeDruation: 3.20000005
- EID: 609 - EID: 609
Name: Light particles Name: Light particles
IsActive: true IsActive: true
@ -15333,7 +15345,13 @@
Color Decay: {x: 0, y: 0, z: 0, w: 0} Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.100000001, z: 0} Acceleration: {x: 0, y: -0.100000001, z: 0}
IsActive: true IsActive: true
Scripts: ~ Scripts:
- Type: DecorationAudio
Enabled: true
name: spark3
audio: event:/Props/sparks
loop: false
timeDruation: 2.5
- EID: 610 - EID: 610
Name: Light particles Name: Light particles
IsActive: true IsActive: true
@ -15367,7 +15385,13 @@
Color Decay: {x: 0, y: 0, z: 0, w: 0} Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.100000001, z: 0} Acceleration: {x: 0, y: -0.100000001, z: 0}
IsActive: true IsActive: true
Scripts: ~ Scripts:
- Type: DecorationAudio
Enabled: true
name: spark4
audio: event:/Props/sparks
loop: false
timeDruation: 3.29999995
- EID: 611 - EID: 611
Name: Water particles Name: Water particles
IsActive: true IsActive: true
@ -15435,7 +15459,13 @@
Color Decay: {x: 0, y: 0, z: 0, w: 0} Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.100000001, z: 0} Acceleration: {x: 0, y: -0.100000001, z: 0}
IsActive: true IsActive: true
Scripts: ~ Scripts:
- Type: DecorationAudio
Enabled: true
name: spark5
audio: event:/Props/sparks
loop: false
timeDruation: 2.29999995
- EID: 613 - EID: 613
Name: Water particles Name: Water particles
IsActive: true IsActive: true
@ -15469,7 +15499,13 @@
Color Decay: {x: 0, y: 0, z: 0, w: 0} Color Decay: {x: 0, y: 0, z: 0, w: 0}
Acceleration: {x: 0, y: -0.899999976, z: 0} Acceleration: {x: 0, y: -0.899999976, z: 0}
IsActive: true IsActive: true
Scripts: ~ Scripts:
- Type: DecorationAudio
Enabled: true
name: water2
audio: event:/Props/tap_loop
loop: true
timeDruation: 0.5
- EID: 615 - EID: 615
Name: Water particles Name: Water particles
IsActive: true IsActive: true
@ -15848,6 +15884,7 @@
maxCombo: 484 maxCombo: 484
finalScore: 274 finalScore: 274
contiuneBtn: 488 contiuneBtn: 488
levelTransition: 229
nextScene: 84606951 nextScene: 84606951
scoreTweenDur: 2 scoreTweenDur: 2
- EID: 488 - EID: 488

View File

@ -1558,7 +1558,7 @@
Scripts: Scripts:
- Type: ChangeSceneButton - Type: ChangeSceneButton
Enabled: true Enabled: true
sceneID: 96668835 sceneID: 91947920
levelTransistion: 433 levelTransistion: 433
- Type: SHADE_Scripting.UI.ButtonFX - Type: SHADE_Scripting.UI.ButtonFX
Enabled: true Enabled: true

View File

@ -83,6 +83,9 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework
AudioHandler.audioClipHandlers["HO_bark"] = SHADE.Audio.CreateAudioClip("event:/Homeowner/homeowner_bark"); AudioHandler.audioClipHandlers["HO_bark"] = SHADE.Audio.CreateAudioClip("event:/Homeowner/homeowner_bark");
SHADE.Audio.AttachAudioClipToObject(AudioHandler.audioClipHandlers["HO_bark"], GameObject.EntityId); SHADE.Audio.AttachAudioClipToObject(AudioHandler.audioClipHandlers["HO_bark"], GameObject.EntityId);
AudioHandler.audioClipHandlers["HO_humming"] = SHADE.Audio.CreateAudioClip("event:/Homeowner/homeowner_humming");
SHADE.Audio.AttachAudioClipToObject(AudioHandler.audioClipHandlers["HO_humming"], GameObject.EntityId);
patrolPointPool = patrolPointParent.GetComponentsInChildren<Transform>(); patrolPointPool = patrolPointParent.GetComponentsInChildren<Transform>();
pppList = patrolPointPool.ToList<Transform>(); pppList = patrolPointPool.ToList<Transform>();
transform = GetComponent<Transform>(); transform = GetComponent<Transform>();

View File

@ -92,7 +92,8 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework.States
{ {
raccoonCaught = true; raccoonCaught = true;
Transform pcTransform = ai.player.GetComponent<Transform>(); Transform pcTransform = ai.player.GetComponent<Transform>();
Transform netTransform = ai.attackHitbox.GetComponentInChildren<Transform>(); ai.player.GetScript<PlayerController>().Caught();
Transform netTransform = ai.attackHitbox.GetComponentInChildren<Transform>();
if (pcTransform && netTransform) if (pcTransform && netTransform)
{ {
pcTransform.GlobalPosition = netTransform.GlobalPosition; pcTransform.GlobalPosition = netTransform.GlobalPosition;

View File

@ -50,6 +50,7 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework.States
animator.Play(ai.walkingAnim); animator.Play(ai.walkingAnim);
AudioHandler.audioClipHandlers["HO_footsteps"].Play(); AudioHandler.audioClipHandlers["HO_footsteps"].Play();
AudioHandler.audioClipHandlers["HO_humming"].Play();
footStepTimer = footStepInterval; footStepTimer = footStepInterval;
@ -64,7 +65,8 @@ namespace SHADE_Scripting.Gameplay.AIBehaviour.AIRework.States
public override void OnExit() public override void OnExit()
{ {
animator.Stop(); animator.Stop();
} AudioHandler.audioClipHandlers["HO_humming"].Stop(false);
}
public override void update() public override void update()
{ {

View File

@ -435,10 +435,13 @@ public class PlayerController : Script
} }
if (!isGrounded && rb != null && (rb.LinearVelocity.y < 0.0f || Input.GetKeyUp(Input.KeyCode.Space))) if (!isGrounded && rb != null && (rb.LinearVelocity.y < 0.0f || Input.GetKeyUp(Input.KeyCode.Space)))
{ {
currentState = RaccoonStates.FALLING; if (currentState != RaccoonStates.CAUGHT)
if (stateMachine && !stateMachine.IsState(typeof(PlayerFallState))) {
stateMachine.SetState(typeof(PlayerFallState)); currentState = RaccoonStates.FALLING;
if (stateMachine && !stateMachine.IsState(typeof(PlayerFallState)))
stateMachine.SetState(typeof(PlayerFallState));
}
} }
} }
@ -544,11 +547,8 @@ public class PlayerController : Script
public void Reset() public void Reset()
{ {
//Debug.Log("PlayerController: Raccon Reset " + currentState); if (tranform && respawnPoint)
if (currentState == RaccoonStates.CAUGHT && tranform && respawnPoint)
{ {
//Debug.Log("PlayerController: Raccon Reset inside if " + currentState);
currentState = RaccoonStates.IDLE; currentState = RaccoonStates.IDLE;
if (stateMachine && !stateMachine.IsState(typeof(PlayerIdleState))) if (stateMachine && !stateMachine.IsState(typeof(PlayerIdleState)))
stateMachine.SetState(typeof(PlayerIdleState)); stateMachine.SetState(typeof(PlayerIdleState));

View File

@ -0,0 +1,47 @@
using SHADE;
using SHADE_Scripting.Audio;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public class DecorationAudio : Script
{
public string name = "REPLACETHIS";
public string audio = "event:/UI/botton_hover";
public bool loop = true;
public float timeDruation = 0.5f;
private float timer = 0.0f;
protected override void awake()
{
if (audio != "Empty")
{
AudioHandler.audioClipHandlers[name] = Audio.CreateAudioClip(audio);
Audio.AttachAudioClipToObject(AudioHandler.audioClipHandlers[name], GameObject.EntityId);
}
}
protected override void start()
{
if (loop)
AudioHandler.audioClipHandlers[name].Play();
}
protected override void update()
{
if (!loop)
{
timer += Time.DeltaTimeF;
if (timer > timeDruation)
{
timer = 0.0f;
AudioHandler.audioClipHandlers[name].Play();
}
}
}
}

View File

@ -0,0 +1,3 @@
Name: SC_DecorationAudio
ID: 166447267
Type: 9

View File

@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;

View File

@ -54,6 +54,9 @@ public class CutsceneEnd : Script
private bool cutscene4Done = false; private bool cutscene4Done = false;
private bool cutscene5Done = false; private bool cutscene5Done = false;
public GameObject levelTransition;
private bool waiting = false;
protected override void awake() protected override void awake()
{ {
initCutscene4(); initCutscene4();
@ -73,6 +76,9 @@ public class CutsceneEnd : Script
protected override void update() protected override void update()
{ {
if (!levelTransition.GetScript<LevelTransistion>().complete)
return;
Canvas4(); Canvas4();
Canvas5(); Canvas5();
@ -98,8 +104,12 @@ public class CutsceneEnd : Script
if (Input.GetKeyUp(Input.KeyCode.Space) && cutscene5Done && canvas5.IsActiveSelf) if (Input.GetKeyUp(Input.KeyCode.Space) && cutscene5Done && canvas5.IsActiveSelf)
{ {
SceneManager.ChangeScene(nextScene); levelTransition.GetScript<LevelTransistion>().resetToLeft();
waiting = true;
} }
if (levelTransition.GetScript<LevelTransistion>().complete && waiting)
SceneManager.ChangeScene(nextScene);
} }
private void Canvas4() private void Canvas4()

View File

@ -82,6 +82,9 @@ public class CutsceneIntro : Script
private bool cutscene2Done = false; private bool cutscene2Done = false;
private bool cutscene3Done = false; private bool cutscene3Done = false;
public GameObject levelTransition;
private bool waiting = false;
protected override void awake() protected override void awake()
{ {
initCutscene1(); initCutscene1();
@ -109,6 +112,9 @@ public class CutsceneIntro : Script
protected override void update() protected override void update()
{ {
if (!levelTransition.GetScript<LevelTransistion>().complete)
return;
Canvas1(); Canvas1();
Canvas2(); Canvas2();
Canvas3(); Canvas3();
@ -148,8 +154,12 @@ public class CutsceneIntro : Script
if (Input.GetKeyUp(Input.KeyCode.Space) && cutscene3Done && canvas3.IsActiveSelf) if (Input.GetKeyUp(Input.KeyCode.Space) && cutscene3Done && canvas3.IsActiveSelf)
{ {
SceneManager.ChangeScene(nextScene); levelTransition.GetScript<LevelTransistion>().resetToLeft();
waiting = true;
} }
if (levelTransition.GetScript<LevelTransistion>().complete && waiting)
SceneManager.ChangeScene(nextScene);
} }
private void Canvas1() private void Canvas1()

View File

@ -69,6 +69,22 @@ public class LevelTransistion : Script
complete = true; complete = true;
} }
public void resetToLeft()
{
logoTran.LocalEulerAngles = Vector3.Zero;
logoTran.LocalPosition = Vector3.Zero;
logoTran.LocalScale = Vector3.Zero;
bgTween.duration = 0.8f;
bgTween.Reset(-3000.0f,0.0f);
logoTween.duration = 0.8f;
logoTween.Reset();
rot.duration = 0.8f;
rot.Reset();
scale.duration = 0.8f;
scale.Reset();
complete = false;
rotAndScale = true;
}
} }

View File

@ -14,6 +14,7 @@ public class Results : Script
public GameObject maxCombo; public GameObject maxCombo;
public GameObject finalScore; public GameObject finalScore;
public GameObject contiuneBtn; public GameObject contiuneBtn;
public GameObject levelTransition;
public uint nextScene; public uint nextScene;
public float scoreTweenDur = 2.0f; public float scoreTweenDur = 2.0f;
@ -73,9 +74,7 @@ public class Results : Script
{ {
contiune.OnRelease.RegisterAction(() => contiune.OnRelease.RegisterAction(() =>
{ {
if (SceneFadeInOut.Instance != null) levelTransition.GetScript<LevelTransistion>().resetToLeft();
SceneFadeInOut.Instance.CallFadeIn();
waitForTransition = true; waitForTransition = true;
GameManager.Instance.GamePause = false; GameManager.Instance.GamePause = false;
@ -93,7 +92,7 @@ public class Results : Script
protected override void update() protected override void update()
{ {
if (SceneFadeInOut.Instance && SceneFadeInOut.Instance.FadeInFinished() && waitForTransition) if (levelTransition.GetScript<LevelTransistion>().complete && waitForTransition)
{ {
Audio.StopAllSounds(); Audio.StopAllSounds();
SceneManager.ChangeScene(nextScene); SceneManager.ChangeScene(nextScene);

View File

@ -1,4 +1,4 @@
using SHADE; using SHADE;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -7,44 +7,43 @@ using System.Threading.Tasks;
namespace SHADE_Scripting.UI namespace SHADE_Scripting.UI
{ {
public class ScrollingCredits: Script public class ScrollingCredits : Script
{
public float endY = 4000.0f;
public float duration = 30.0f;
public GameObject levelTransition;
[NonSerialized]
TweenThread thread;
protected override void awake()
{
base.awake();
}
protected override void start()
{ {
public float endY = 4000.0f; Transform transform = GetComponent<Transform>();
public float duration = 30.0f; if (transform != null)
{
thread = TweenManager.CreateTweenThread(duration, transform.LocalPosition.y, endY, EASING_METHOD.LINEAR);
[NonSerialized] thread.SetResetOnInactive(GameObject);
TweenThread thread; }
protected override void awake()
{
base.awake();
}
protected override void start()
{
base.start();
Transform transform = GetComponent<Transform>();
if(transform != null)
{
thread = TweenManager.CreateTweenThread(duration, transform.LocalPosition.y, endY, EASING_METHOD.LINEAR);
thread.SetResetOnInactive(GameObject);
}
}
protected override void update()
{
base.update();
Transform transform = GetComponent<Transform>();
if(thread != null && transform != null)
{
transform.LocalPosition = new Vector3( transform.LocalPosition.x ,thread.GetValue() , transform.LocalPosition.z);
}
}
} }
protected override void update()
{
Transform transform = GetComponent<Transform>();
if (thread != null && transform != null)
{
transform.LocalPosition = new Vector3(transform.LocalPosition.x, thread.GetValue(), transform.LocalPosition.z);
}
}
}
} }

View File

@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SHADE;
namespace SHADE_Scripting.UI
{
public class TransitToMainMenu: Script
{
public float timeToTransit = 0.0f;
public uint sceneToChange = 0;
private float timer = 0.0f;
private bool sceneChanged = false;
protected override void start()
{
timer = timeToTransit;
sceneChanged = false;
}
protected override void update()
{
timer -= Time.DeltaTimeF;
if(timer <= 0.0f && sceneChanged == false)
{
SceneManager.ChangeScene(sceneToChange);
sceneChanged = true;
}
if(Input.GetKeyDown(Input.KeyCode.Space))
{
timer = 0.0f;
}
}
}
}

View File

@ -0,0 +1,3 @@
Name: TransitToMainMenu
ID: 159865134
Type: 9