This file contains 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 UnityEngine; | |
public class PlayerMovement : MonoBehaviour | |
{ | |
public float speed = 6f; | |
Vector3 movement; | |
Animator anim; | |
Rigidbody playerRigidbody; | |
int floorMask; |
This file contains 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 UnityEngine; | |
using System.Collections; | |
public class EnemyMovement : MonoBehaviour | |
{ | |
Transform player; | |
PlayerHealth playerHealth; | |
EnemyHealth enemyHealth; | |
UnityEngine.AI.NavMeshAgent nav; | |
public float speed = 6f; |
This file contains 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 UnityEngine; | |
public class SpecialEffectsHelper : MonoBehaviour | |
{ | |
public static SpecialEffectsHelper Instance; | |
public ParticleSystem smokeEffect; | |
public ParticleSystem fireEffect; |
This file contains 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 UnityEngine; | |
using System.Collections; | |
public class SpikeBall : MonoBehaviour | |
{ | |
//a holder for our Animator | |
Animator anim; | |
//a public float for the explosion radius | |
private Vector2 movement; | |
private Rigidbody2D rigidbodyComponent; |
This file contains 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 UnityEngine; | |
public class Shield : MonoBehaviour | |
{ | |
public GameObject player1; | |
public GameObject player2; | |
public GameObject shield; | |
private float wait = 0f; | |
public GameObject particle1; |
This file contains 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 UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
using UnityEngine.SceneManagement; | |
public class SceneLoader : MonoBehaviour | |
{ | |
private bool loadScene = false; | |
public GUIElement gui; |
This file contains 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 UnityEngine; | |
using System.Collections; | |
using System.Diagnostics; | |
public class RobotController1 : MonoBehaviour | |
{ | |
//This will be our maximum speed as we will always be multiplying by 1 | |
public static float maxSpeed = 9f; | |
//a boolean value to represent whether we are facing left or not | |
bool facingLeft = true; |
This file contains 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 UnityEngine; | |
using System.Collections; | |
using System.Diagnostics; | |
public class RobotController : MonoBehaviour | |
{ | |
//This will be our maximum speed as we will always be multiplying by 1 | |
public static float maxSpeed = 9f; | |
//a boolean value to represent whether we are facing left or not | |
bool facingLeft = true; |
This file contains 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 UnityEngine; | |
using System.Collections; | |
public class Pencilline : MonoBehaviour | |
{ | |
//public float explodeRadius = 1f; | |
//to refer to our prefab pencilline | |
public GameObject obj; |
This file contains 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 UnityEngine; | |
using System.Collections; | |
using UnityEngine.SceneManagement; | |
public class Pancam : MonoBehaviour | |
{ | |
float ydir = 0f; | |
public GameObject player; | |
public GameObject player2; |