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 spriteSpin : MonoBehaviour | |
| { | |
| public float rotationSpeed = 20.0f; | |
| // Start is called before the first frame update | |
| void Start() | |
| { |
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 spriteFlip : MonoBehaviour | |
| { | |
| // Start is called before the first frame update | |
| void Start() | |
| { | |
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 enemyPatrol : MonoBehaviour | |
| { | |
| public GameObject pointA; | |
| public GameObject pointB; | |
| private Rigidbody rb; | |
| private Animator anim; |
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 enemyFollow : MonoBehaviour | |
| { | |
| private Transform target; | |
| public float speed; | |
| // Start is called before the first frame update | |
| void Start() |
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 enemySpawn : MonoBehaviour | |
| { | |
| public GameObject EnemyPrefab; | |
| public int numberOfEnemies; | |
| void spawnEnemy() |
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 enemySpawn : MonoBehaviour | |
| { | |
| public GameObject EnemyPrefab; | |
| public int numberOfEnemies; | |
| void spawnEnemy() |
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.InputSystem; | |
| public class PlayerController : MonoBehaviour | |
| { | |
| private CharacterInput controls; | |
| private Vector3 velocity; | |
| private Vector2 move; |