Esempio n. 1
0
        protected override void Create(PlayTest playtest)
        {
            // Update the con-fig on-line
            ApiHandler.UpdatePlayTestConfig(playtest);

            SafeAssetHandeling.SaveAsset(playtest);

            Cancel();
        }
        protected void CreateAndBuild(PlayTest playtest)
        {
            Create(playtest);

            bool buildSucces = Builder.Build(playtest);

            if (buildSucces)
            {
                ApiHandler.UpdatePlayTestConfig(playtest);

                SafeAssetHandeling.SaveAsset(playtest);
                return;
            }

            // TODO populate with good error codes
            EditorUtility.DisplayDialog("Error", "Something went wrong.", "Ok");
        }