Пример #1
0
        // PAINT METHODS: -------------------------------------------------------------------------

        protected override SerializedProperty GetProperty(int option, SerializedProperty property)
        {
            TargetGameObject.Target optionTyped = (TargetGameObject.Target)option;
            switch (optionTyped)
            {
            case TargetGameObject.Target.GameObject:
                return(property.FindPropertyRelative(PROP_GAMEOBJECT));

            case TargetGameObject.Target.LocalVariable:
                return(property.FindPropertyRelative(PROP_LOCAL));

            case TargetGameObject.Target.ListVariable:
                return(property.FindPropertyRelative(PROP_LIST));

            case TargetGameObject.Target.GlobalVariable:
                return(property.FindPropertyRelative(PROP_GLOBAL));
            }

            return(null);
        }
Пример #2
0
 public TargetGameObject(TargetGameObject.Target target)
 {
     this.target = target;
 }