mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-11-11 04:22:40 +00:00
bird level done-ish
This commit is contained in:
1 parent
fbe576872e
commit
4876431c4a
22 files changed
+7506
-599
No files matched your search
@@ -0,0 +1,13 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ActivateScript : Trigger
|
||||
{
|
||||
public GameObject obj;
|
||||
public bool deactivate;
|
||||
|
||||
public override void Action() {
|
||||
obj.SetActive(!deactivate);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 220659e15c8199740ac9e81427e4ccb7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class FallTrigger : Trigger
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
public GameObject player;
|
||||
public Vector2 respawn;
|
||||
[SerializeField] bool canHurt = true;
|
||||
|
||||
public override void Action() {
|
||||
player.transform.position = respawn;
|
||||
if(canHurt) {
|
||||
player.GetComponent<Health>().takeHit();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aa757a0b9970dab4790d5da7745e9688
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -8,7 +8,7 @@ public class WorkingWallTrigger : MonoBehaviour
|
||||
public GameObject cat;
|
||||
public BoxCollider2D box;
|
||||
private int counter = 0;
|
||||
[Range(-25f, 25f)] public float camOffset = 10f;
|
||||
[Range(-50f, 50f)] public float camOffset = 10f;
|
||||
[Range(-15f, 15f)] public float catOffset = 5f;
|
||||
[Range(5, 180)] public int countOffset = 10;
|
||||
private Vector3 moveCam;
|
||||
|
||||
Reference in new issue
Block a user