private void Awake() { if (CameraPersonnage.Instance != null) { if (CameraPersonnage.Instance != this) { Debug.LogError("2 CameraPersonnages Dans La Scène"); Destroy(this); } return; } CameraPersonnage.Instance = this; }
private void Awake() { if (CameraPersonnage.Instance != null) { if (CameraPersonnage.Instance != this) { Debug.LogError("Attention,il y a deux CameraPersonnage dans la scene"); } Destroy(this); return; } CameraPersonnage.Instance = this; }