mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-10-11 18:19:11 +00:00
Moved Some stuff around before the merge
I move stuff :)
This commit is contained in:
1 parent
8486b14d17
commit
ce568ed8e5
8 files changed
+70
-21
No files matched your search
Generated
+8
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 44c9f904ad907c24e9891940258fd90e
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File renamed without changes.
File renamed without changes.
@@ -20,8 +20,8 @@ public class ScriptRayHit : MonoBehaviour
|
|||||||
hit = Physics2D.Raycast(transform.position, transform.TransformDirection(Vector2.right), 4f);
|
hit = Physics2D.Raycast(transform.position, transform.TransformDirection(Vector2.right), 4f);
|
||||||
if (hit)
|
if (hit)
|
||||||
{
|
{
|
||||||
Debug.Log(" Hit a wall "+ hit.collider.name);
|
//Debug.Log(" Hit a wall "+ hit.collider.name);
|
||||||
Debug.Log(counter);
|
//Debug.Log(counter);
|
||||||
}
|
}
|
||||||
counter++;
|
counter++;
|
||||||
}
|
}
|
||||||
File renamed without changes.
@@ -24,6 +24,10 @@ public class WallTrigger : MonoBehaviour
|
|||||||
|
|
||||||
void OnTriggerEnter2D(Collider2D col)
|
void OnTriggerEnter2D(Collider2D col)
|
||||||
{
|
{
|
||||||
|
if (Input.GetButtonDown("Interact"))
|
||||||
|
{
|
||||||
|
Interact(col);
|
||||||
|
}
|
||||||
if (!entered && counter >= 120)
|
if (!entered && counter >= 120)
|
||||||
{
|
{
|
||||||
entered = true;
|
entered = true;
|
||||||
@@ -31,14 +35,14 @@ public class WallTrigger : MonoBehaviour
|
|||||||
//Debug.Log("Move Cam Right");
|
//Debug.Log("Move Cam Right");
|
||||||
cam.transform.position += moveCam;
|
cam.transform.position += moveCam;
|
||||||
cat.transform.position += moveCat;
|
cat.transform.position += moveCat;
|
||||||
Debug.Log(counter);
|
//Debug.Log(counter);
|
||||||
counter = 0;
|
counter = 0;
|
||||||
//PlayerMovement.ChangePos(1, 2);
|
//PlayerMovement.ChangePos(1, 2);
|
||||||
}
|
}
|
||||||
else if (counter >= 120 && entered)
|
else if (counter >= 120 && entered)
|
||||||
{
|
{
|
||||||
//Debug.Log("Moved cam left");
|
//Debug.Log("Moved cam left");
|
||||||
Debug.Log(counter);
|
//Debug.Log(counter);
|
||||||
cam.transform.position -= moveCam;
|
cam.transform.position -= moveCam;
|
||||||
cat.transform.position -= moveCat;
|
cat.transform.position -= moveCat;
|
||||||
entered = false;
|
entered = false;
|
||||||
@@ -48,6 +52,11 @@ public class WallTrigger : MonoBehaviour
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void Interact(Collider2D col)
|
||||||
|
{
|
||||||
|
Debug.Log("Interact Buttion Pressed!!");
|
||||||
|
}
|
||||||
|
|
||||||
/*void Interact(Collider2D col, ){
|
/*void Interact(Collider2D col, ){
|
||||||
*
|
*
|
||||||
}*/
|
}*/
|
||||||
|
|||||||
Generated
+47
-15
@@ -123,6 +123,39 @@ NavMeshSettings:
|
|||||||
debug:
|
debug:
|
||||||
m_Flags: 0
|
m_Flags: 0
|
||||||
m_NavMeshData: {fileID: 0}
|
m_NavMeshData: {fileID: 0}
|
||||||
|
--- !u!1 &38840432
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 38840433}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: BackGround Parent
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &38840433
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 38840432}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 853833790}
|
||||||
|
- {fileID: 272334158}
|
||||||
|
- {fileID: 1363037122}
|
||||||
|
m_Father: {fileID: 760969146}
|
||||||
|
m_RootOrder: 4
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &140439526
|
--- !u!1 &140439526
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -262,7 +295,7 @@ Transform:
|
|||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 469874272}
|
- {fileID: 469874272}
|
||||||
m_Father: {fileID: 760969146}
|
m_Father: {fileID: 760969146}
|
||||||
m_RootOrder: 2
|
m_RootOrder: 1
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!61 &189071653
|
--- !u!61 &189071653
|
||||||
BoxCollider2D:
|
BoxCollider2D:
|
||||||
@@ -386,12 +419,12 @@ Transform:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 272334157}
|
m_GameObject: {fileID: 272334157}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
m_LocalPosition: {x: -0.35, y: -0.1, z: 0}
|
m_LocalPosition: {x: -0.35, y: -0.1, z: 0}
|
||||||
m_LocalScale: {x: 1.8342799, y: 1.8342799, z: 1.8342799}
|
m_LocalScale: {x: 1.8342799, y: 1.8342799, z: 1.8342799}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 760969146}
|
m_Father: {fileID: 38840433}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 1
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!212 &272334159
|
--- !u!212 &272334159
|
||||||
SpriteRenderer:
|
SpriteRenderer:
|
||||||
@@ -476,7 +509,7 @@ Transform:
|
|||||||
- {fileID: 140439527}
|
- {fileID: 140439527}
|
||||||
- {fileID: 904820523}
|
- {fileID: 904820523}
|
||||||
m_Father: {fileID: 760969146}
|
m_Father: {fileID: 760969146}
|
||||||
m_RootOrder: 4
|
m_RootOrder: 2
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &469874271
|
--- !u!1 &469874271
|
||||||
GameObject:
|
GameObject:
|
||||||
@@ -565,7 +598,7 @@ Transform:
|
|||||||
- {fileID: 267604311}
|
- {fileID: 267604311}
|
||||||
- {fileID: 636622992}
|
- {fileID: 636622992}
|
||||||
m_Father: {fileID: 760969146}
|
m_Father: {fileID: 760969146}
|
||||||
m_RootOrder: 5
|
m_RootOrder: 3
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &588055173
|
--- !u!1 &588055173
|
||||||
GameObject:
|
GameObject:
|
||||||
@@ -775,12 +808,11 @@ Transform:
|
|||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 272334158}
|
|
||||||
- {fileID: 1058938763}
|
- {fileID: 1058938763}
|
||||||
- {fileID: 189071652}
|
- {fileID: 189071652}
|
||||||
- {fileID: 1363037122}
|
|
||||||
- {fileID: 377681583}
|
- {fileID: 377681583}
|
||||||
- {fileID: 485861824}
|
- {fileID: 485861824}
|
||||||
|
- {fileID: 38840433}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 2
|
m_RootOrder: 2
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
@@ -1141,8 +1173,8 @@ Transform:
|
|||||||
m_LocalPosition: {x: 21.69, y: 11.5, z: 0}
|
m_LocalPosition: {x: 21.69, y: 11.5, z: 0}
|
||||||
m_LocalScale: {x: 1.8342799, y: 1.8342799, z: 1.8342799}
|
m_LocalScale: {x: 1.8342799, y: 1.8342799, z: 1.8342799}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 38840433}
|
||||||
m_RootOrder: 3
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!1 &904820522
|
--- !u!1 &904820522
|
||||||
GameObject:
|
GameObject:
|
||||||
@@ -1306,7 +1338,7 @@ Camera:
|
|||||||
far clip plane: 1000
|
far clip plane: 1000
|
||||||
field of view: 60
|
field of view: 60
|
||||||
orthographic: 1
|
orthographic: 1
|
||||||
orthographic size: 5
|
orthographic size: 6
|
||||||
m_Depth: -1
|
m_Depth: -1
|
||||||
m_CullingMask:
|
m_CullingMask:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
@@ -1447,7 +1479,7 @@ Transform:
|
|||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 760969146}
|
m_Father: {fileID: 760969146}
|
||||||
m_RootOrder: 1
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!61 &1058938764
|
--- !u!61 &1058938764
|
||||||
BoxCollider2D:
|
BoxCollider2D:
|
||||||
@@ -1530,12 +1562,12 @@ Transform:
|
|||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1363037121}
|
m_GameObject: {fileID: 1363037121}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
m_LocalPosition: {x: 21.69, y: -0.1, z: 0}
|
m_LocalPosition: {x: 21.69, y: -0.1, z: 0}
|
||||||
m_LocalScale: {x: 1.8342799, y: 1.8342799, z: 1.8342799}
|
m_LocalScale: {x: 1.8342799, y: 1.8342799, z: 1.8342799}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 760969146}
|
m_Father: {fileID: 38840433}
|
||||||
m_RootOrder: 3
|
m_RootOrder: 2
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!212 &1363037123
|
--- !u!212 &1363037123
|
||||||
SpriteRenderer:
|
SpriteRenderer:
|
||||||
|
|||||||
Generated
+2
-2
@@ -38,11 +38,11 @@ InputManager:
|
|||||||
axis: 0
|
axis: 0
|
||||||
joyNum: 0
|
joyNum: 0
|
||||||
- serializedVersion: 3
|
- serializedVersion: 3
|
||||||
m_Name: Fire1
|
m_Name: Interact
|
||||||
descriptiveName:
|
descriptiveName:
|
||||||
descriptiveNegativeName:
|
descriptiveNegativeName:
|
||||||
negativeButton:
|
negativeButton:
|
||||||
positiveButton: left ctrl
|
positiveButton: e
|
||||||
altNegativeButton:
|
altNegativeButton:
|
||||||
altPositiveButton: mouse 0
|
altPositiveButton: mouse 0
|
||||||
gravity: 1000
|
gravity: 1000
|
||||||
|
|||||||
Reference in new issue
Block a user