This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class WeaponColliderScript : MonoBehaviour | |
{ | |
public GameObject player; | |
private float weaponDamage; | |
private void OnTriggerEnter2D(Collider2D collision) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
public class WeaponScript : MonoBehaviour | |
{ | |
private bool swing = false; | |
int degree = 0; | |
private float weaponY = -0.4f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
public class SpawnerScript : MonoBehaviour | |
{ | |
public GameObject enemyPrefab; | |
public GameObject[] spawnPoints; | |
private float timer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class PlayerScript : MonoBehaviour | |
{ | |
private float horizontal; | |
private float vertical; | |
private float speed = 4.0f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class EnemyScript : MonoBehaviour | |
{ | |
private float range; | |
private Transform target; | |
private float minDistance = 5.0f; | |
private bool targetCollision = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
public class GameManager : MonoBehaviour | |
{ | |
public GameObject[] spawners; | |
private int level = 0; | |
private int currentScene = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class DoorToLevel1Script : MonoBehaviour | |
{ | |
public GameManager gameManager; | |
private void OnTriggerEnter2D(Collider2D collision) | |
{ | |
if (collision.gameObject.CompareTag("Player")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Simple Division Calculator | |
; Kurt Kaiser | |
INCLUDE Irvine32.inc | |
; .data is used for declaring and defining variables | |
.data | |
codeTitle BYTE " --------- Math Magic --------- ", 0 | |
directions BYTE "Enter 2 numbers.", 0 | |
prompt1 BYTE "First number: ", 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Simple Multiplication Calculator | |
; Kurt Kaiser | |
INCLUDE Irvine32.inc | |
; .data is used for declaring and defining variables | |
.data | |
codeTitle BYTE " --------- Math Multiplication Magic --------- ", 0 | |
directions BYTE "Enter 2 numbers.", 0 | |
prompt1 BYTE "First number: ", 0 |