-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
883b185
commit 718c928
Showing
7 changed files
with
68 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,11 +20,8 @@ jobs: | |
|
||
- name: Setup Environment | ||
run: | | ||
mkdir Tmp | ||
mv Editor Tmp/ | ||
mv Runtime Tmp/ | ||
mv Tests Tmp/ | ||
mv package.json Tmp/package.json | ||
mkdir Package | ||
mv Editor Runtime Tests Android iOS Windows package.json Package/ | ||
- name: Run Tests | ||
uses: game-ci/[email protected] | ||
|
@@ -34,6 +31,6 @@ jobs: | |
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | ||
with: | ||
packageMode: true | ||
projectPath: Tmp/ | ||
projectPath: Package/ | ||
testMode: ${{ matrix.testMode }} | ||
unityVersion: 2022.1.11f1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Backtrace.Unity.Model.Waiter; | ||
|
||
namespace Backtrace.Unity.Model | ||
{ | ||
public class WaitForFrame | ||
{ | ||
private static IWaiter _waiter = Application.isBatchMode | ||
? new BatchModeWaiter() | ||
: new EndOfFrameWaiter(); | ||
|
||
public static IEnumerator Wait() | ||
{ | ||
return _waiter.Wait(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Backtrace.Unity.Extensions; | ||
using Backtrace.Unity.Types; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace Backtrace.Unity.Model.Waiter | ||
{ | ||
public class BatchModeWaiter : IWaiter | ||
{ | ||
public IEnumerator Wait() | ||
{ | ||
Debug.Log("Using BatchModeWaiter"); | ||
yield return null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Backtrace.Unity.Extensions; | ||
using Backtrace.Unity.Types; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace Backtrace.Unity.Model.Waiter | ||
{ | ||
public class EndOfFrameWaiter : IWaiter | ||
{ | ||
public IEnumerator Wait() | ||
{ | ||
Debug.Log("Using EndOfFrameWaiter"); | ||
yield return new WaitForEndOfFrame(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Backtrace.Unity.Extensions; | ||
using Backtrace.Unity.Types; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace Backtrace.Unity.Model.Waiter | ||
{ | ||
public interface IWaiter | ||
{ | ||
public IEnumerator Wait(); | ||
} | ||
} |