Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,014 changes: 1,014 additions & 0 deletions CSD Fall 2024 Unity Game/Assets/Cutscenes/BearCaveDeathScene.playable

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d6fa2d92fc1b3f34da284357edf89c3b, type: 3}
m_Name: death
m_EditorClassIdentifier:

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 47 additions & 0 deletions CSD Fall 2024 Unity Game/Assets/RockBearSalamanderTrigger.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RockBearSalamanderTrigger : MonoBehaviour
{
public ShiningRock rock = new ShiningRock();
public GameObject darkness = new GameObject();
public GameObject bearCutscene = new GameObject();
public GameObject barrier = new GameObject();


// Start is called before the first frame update
void Start()
{
string objectName = gameObject.name;
}

// Update is called once per frame
void Update()
{

if (gameObject.name.Equals("ShiningRockBear"))
{
if (rock.orientation == 1)
{
if (bearCutscene != null)
{
bearCutscene.SetActive(true);
rock.orientation = 0;
}

barrier.SetActive(false);
darkness.SetActive(false);
}
}

if (gameObject.name.Equals("ShiningRockSalamander"))
{
if (rock.orientation == 3)
{
barrier.SetActive(false);
darkness.SetActive(false);
}
}
}
}
11 changes: 11 additions & 0 deletions CSD Fall 2024 Unity Game/Assets/RockBearSalamanderTrigger.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading