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