比较提交
合并到: unity-tech-cn:main
unity-tech-cn:/main
unity-tech-cn:/2018.3
unity-tech-cn:/feature-callable-flow
unity-tech-cn:/feature-sceneview-toolbar-preferences
unity-tech-cn:/feature-handle-drop-rlist
unity-tech-cn:/refactor-handle-modules
unity-tech-cn:/feature-cinemachine-noise-shake
unity-tech-cn:/feature-new-input-system
unity-tech-cn:/update-starters
unity-tech-cn:/feature-on-vfx-output-event
unity-tech-cn:/patches-2020.2.7-patch.1
unity-tech-cn:/feature-generic-animation-rigs
unity-tech-cn:/fix-pickups
unity-tech-cn:/refactor-2021-2-sceneview-toolbar
unity-tech-cn:/refactor-gui-overhaul
unity-tech-cn:/refactor-messager-dict-keys
unity-tech-cn:/fix-enterplaymode
unity-tech-cn:/refactor-manager-dependencies
unity-tech-cn:/feature-asset-dependency-explorer
拉取从: unity-tech-cn:refactor-manager-dependencies
unity-tech-cn:/main
unity-tech-cn:/2018.3
unity-tech-cn:/feature-callable-flow
unity-tech-cn:/feature-sceneview-toolbar-preferences
unity-tech-cn:/feature-handle-drop-rlist
unity-tech-cn:/refactor-handle-modules
unity-tech-cn:/feature-cinemachine-noise-shake
unity-tech-cn:/feature-new-input-system
unity-tech-cn:/update-starters
unity-tech-cn:/feature-on-vfx-output-event
unity-tech-cn:/patches-2020.2.7-patch.1
unity-tech-cn:/feature-generic-animation-rigs
unity-tech-cn:/fix-pickups
unity-tech-cn:/refactor-2021-2-sceneview-toolbar
unity-tech-cn:/refactor-gui-overhaul
unity-tech-cn:/refactor-messager-dict-keys
unity-tech-cn:/fix-enterplaymode
unity-tech-cn:/refactor-manager-dependencies
unity-tech-cn:/feature-asset-dependency-explorer
此合并请求有变更与目标分支冲突。
/Runtime/Managers/Implementations/GameManager.cs
/CHANGELOG.md
2 次代码提交
作者 | SHA1 | 备注 | 提交日期 |
---|---|---|---|
Thomas ICHÉ | 3b04f20b | Change Terminology | 3 年前 |
Thomas ICHÉ | 5511615a | Manager Dependency List | 3 年前 |
共有 8 个文件被更改,包括 263 次插入 和 38 次删除
-
12Editor/GameViewLink/LinkGameView.cs
-
50Editor/PlayFromHere.cs
-
6CHANGELOG.md
-
5Runtime/Managers/ManagerDefaultPrefabAttribute.cs
-
1Runtime/Managers/Implementations/GameManager.cs
-
188Runtime/Managers/Manager.cs
-
28Runtime/Managers/ManagerDependsOnAttribute.cs
-
11Runtime/Managers/ManagerDependsOnAttribute.cs.meta
|
|||
using System.Collections.Generic; |
|||
using System; |
|||
|
|||
namespace GameplayIngredients |
|||
{ |
|||
[AttributeUsage(AttributeTargets.Class)] |
|||
public class ManagerDependsOnAttribute : Attribute |
|||
{ |
|||
public Type[] dependantTypes { get; private set; } |
|||
|
|||
public ManagerDependsOnAttribute(params Type[] dependencies) |
|||
{ |
|||
var dt = new List<Type>(); |
|||
|
|||
foreach(var type in dependencies) |
|||
{ |
|||
// Only add if this is a manager
|
|||
if(type != null && typeof(Manager).IsAssignableFrom(type)) |
|||
{ |
|||
dt.Add(type); |
|||
} |
|||
} |
|||
|
|||
dependantTypes = dt.ToArray(); |
|||
} |
|||
} |
|||
} |
|||
|
|
|||
fileFormatVersion: 2 |
|||
guid: c26ce7858a5c56c4da09ed5c0f230f1e |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue