Exemplo n.º 1
0
 void Awake()
 {
     if (instance == null){
         instance = this;
         rotationMarkerMapping = new Dictionary<RotationMarker, Transform>();
         shipGameplayCamera = CameraManager.Instance.ShipGameplayCamera;
         canvas = GetComponent<Canvas>();
     }
     else{
         Destroy(this.gameObject);
         Debug.Log("Destroyed duplicate instance of RotationMarkerManager");
     }
 }
Exemplo n.º 2
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
         rotationMarkerMapping = new Dictionary <RotationMarker, Transform>();
         shipGameplayCamera    = CameraManager.Instance.ShipGameplayCamera;
         canvas = GetComponent <Canvas>();
     }
     else
     {
         Destroy(this.gameObject);
         Debug.Log("Destroyed duplicate instance of RotationMarkerManager");
     }
 }