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; | |
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; |
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 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; |
NewerOlder