bird level done-ish

This commit is contained in:
Rizvee committed 2022-02-27 01:48:56 -06:00
1 parent fbe576872e
commit 4876431c4a
22 files changed
+7506 -599

No files matched your search

+13
View File
@@ -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);
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 220659e15c8199740ac9e81427e4ccb7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+18
View File
@@ -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();
}
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: aa757a0b9970dab4790d5da7745e9688
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+1 -1
View File
@@ -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;