Пример #1
0
        static ComponentVariableProperty()
        {
            VariableRegisters <T> .Register(_ID_READ_ONLY, GetData, null, GetReadOnlyAccess);

            VariableRegisters <T> .Register(_ID_READ_WRITE, GetData, GetDataRef, GetReadWriteAccess);

            VariableRegisters <T> .Register(_ID_OPTIONAL, GetData, GetDataRef);
        }
Пример #2
0
        static GraphVariableProperty()
        {
            var type = typeof(GraphVariableProperty <T>);

            VariableRegisters <T> .Register(ID, type.Getter("GetData"), null, GetComponentAccess);

            IEnumerable <ComponentType> GetComponentAccess(ref BlobVariable <T> variable)
            {
                return(ComponentType.ReadOnly <CurrentBehaviorTreeComponent>().Yield());
            }
        }
Пример #3
0
 static ScriptableObjectVariableProperty()
 {
     VariableRegisters <T> .Register(ID, GetData, GetDataRef);
 }