private void Awake() { if (!instance) { instance = this; } }
private void Awake() { if (singletone == null) { singletone = this; } VirtualCamera = GetComponent <CinemachineVirtualCamera>(); }
// Start is called before the first frame update void Start() { camShake = FindObjectOfType <SimpleCameraShakeInCinemachine>(); rb = gameObject.GetComponent <Rigidbody2D>(); player = GameObject.FindGameObjectWithTag("Player"); }
void Start() { camShake = FindObjectOfType <SimpleCameraShakeInCinemachine>(); rb = gameObject.GetComponent <Rigidbody2D>(); }