Exemple #1
0
        private bool ValidateReferences()
        {
            bool areBuilderSet  = builder;
            bool areSettingsSet = settings;
            bool isSphereCombineControllerSet = sphereCombineController != null;
            bool isCameraSet = camera;

            if (builder && areSettingsSet && isSphereCombineControllerSet && isCameraSet)
            {
                return(true);
            }

            if (areBuilderSet == false)
            {
                Debug.LogError("Builder are not set!");
            }

            if (areSettingsSet == false)
            {
                Debug.LogError("Settings are not set!");
            }

            if (isSphereCombineControllerSet == false)
            {
                Debug.LogError("SphereCombineController are not set!");
            }

            if (isCameraSet == false)
            {
                Debug.LogError("Camera are not set!");
            }

            Debug.LogError("Aborting...");
            AppUtility.Quit();

            return(false);
        }