View ChromaCooldown.cs
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;
View CubeSpawner.cs
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;
View manifest.json
{
"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"
View GroundPlacementController.cs
using System;
using UnityEngine;
public class GroundPlacementController : MonoBehaviour
{
[SerializeField]
private GameObject[] placeableObjectPrefabs;
private GameObject currentPlaceableObject;
View HoldToPickup.cs
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]
View LevelManager.cs
using System.Collections;
using UnityEngine;
using UnityEngine.SceneManagement;
public class LevelManager : MonoBehaviour
{
[SerializeField]
private string[] levelNames;
private ScreenWipe screenWipe;
View WorldPositionButton.cs
using UnityEngine;
using UnityEngine.UI;
public class WorldPositionButton : MonoBehaviour
{
[SerializeField]
private Transform targetTransform;
private RectTransform rectTransform;
private Image image;
View Gun.cs
using UnityEngine;
public class Gun : MonoBehaviour
{
[SerializeField]
[Range(0.1f, 1.5f)]
private float fireRate = 0.3f;
[SerializeField]
[Range(1, 10)]
View PlayerMovement.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
private CharacterController characterController;
private Animator animator;
[SerializeField]
View Character.cs
using UnityEngine;
public class Character : MonoBehaviour
{
[SerializeField]
private Transform rightHand;
private GameObject currentWeapon;
public void EquipWeapon(GameObject weaponPrefab)