Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using System.Collections;
public class CameraShake : MonoBehaviour {
private bool _isShaking = false;
[SerializeField]private float _shakeDuration = 0.25f;
[SerializeField]private float _originalXPos = 0f;
[SerializeField]private float _originalYPos = 0f;
using System;
using System.Collections;
using UnityEngine;
using UnityEngine.UI;
public class IncreaseScoreOverTime : MonoBehaviour
{
//The text component that the score will be displayed on.
[SerializeField]
private Text _scoreText;