protected void Awake() { if (_instance != null) { throw new Exception("Tentative de création d'une autre instance de CameraZoomEditor alors que c'est un singleton."); } _instance = this; _actualPolar = 0; transform.rotation = Quaternion.FromToRotation(Vector3.up, transform.position); }
protected void OnDestroy() { _instance = null; }