-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
e34b719
commit f425f2e
Showing
12 changed files
with
118 additions
and
46 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 |
---|---|---|
@@ -1 +1 @@ | ||
public static class BuildInfo{public static string BUILD_TIME = "12/31/2023 4:26:34 AM";} | ||
public static class BuildInfo{public static string BUILD_TIME = "1/2/2024 2:12:46 AM";} |
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
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,35 @@ | ||
using Fusion; | ||
|
||
public interface IWaitForGameEnd { | ||
|
||
public virtual FunctionTarget Target => FunctionTarget.All; | ||
|
||
void AttemptExecute(NetworkObject obj) { | ||
switch (Target) { | ||
case FunctionTarget.All: { | ||
Execute(); | ||
break; | ||
} | ||
case FunctionTarget.ServerHostOnly: { | ||
if (obj.Runner.IsServer) { | ||
Execute(); | ||
} | ||
|
||
break; | ||
} | ||
case FunctionTarget.ObjectOwnerOnly: { | ||
if (obj.HasInputAuthority) { | ||
Execute(); | ||
} | ||
|
||
break; | ||
} | ||
} | ||
} | ||
|
||
void Execute(); | ||
|
||
public enum FunctionTarget { | ||
All, ServerHostOnly, ObjectOwnerOnly | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Assets/Scripts/Entity/World Elements/IWaitForGameEnd.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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
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
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