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 Corale.Colore.Core; | |
using Corale.Colore.Razer.Keyboard; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
public class ChromaCooldown : MonoBehaviour | |
{ | |
public const float COOLDOWN_TIME = 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 Unity.Entities; | |
using Unity.Mathematics; | |
using Unity.Rendering; | |
using Unity.Transforms; | |
using Unity.Transforms2D; | |
using UnityEngine; | |
public class CubeSpawner : MonoBehaviour | |
{ | |
private static EntityManager entityManager; |
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
{ | |
"dependencies": { | |
"com.unity.incrementalcompiler": "0.0.38", | |
"com.unity.entities": "0.0.12-preview.1" | |
}, | |
"registry": "https://staging-packages.unity.com", | |
"testables": [ | |
"com.unity.collections", | |
"com.unity.entities", | |
"com.unity.jobs" |
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; | |
using UnityEngine; | |
public class GroundPlacementController : MonoBehaviour | |
{ | |
[SerializeField] | |
private GameObject[] placeableObjectPrefabs; | |
private GameObject currentPlaceableObject; |
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 TMPro; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class HoldToPickup : MonoBehaviour | |
{ | |
[SerializeField] | |
[Tooltip("Probably just the main camera.. but referenced here to avoid Camera.main calls")] | |
private Camera camera; | |
[SerializeField] |
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 UnityEngine; | |
using UnityEngine.SceneManagement; | |
public class LevelManager : MonoBehaviour | |
{ | |
[SerializeField] | |
private string[] levelNames; | |
private ScreenWipe screenWipe; |
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 UnityEngine; | |
public class Gun : MonoBehaviour | |
{ | |
[SerializeField] | |
[Range(0.1f, 1.5f)] | |
private float fireRate = 0.3f; | |
[SerializeField] | |
[Range(1, 10)] |
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 PlayerMovement : MonoBehaviour | |
{ | |
private CharacterController characterController; | |
private Animator animator; | |
[SerializeField] |
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 UnityEngine; | |
public class Character : MonoBehaviour | |
{ | |
[SerializeField] | |
private Transform rightHand; | |
private GameObject currentWeapon; | |
public void EquipWeapon(GameObject weaponPrefab) |