Esempio n. 1
0
        protected override SerializedProperty GetProperty(int option, SerializedProperty property)
        {
            TargetCharacter.Target optionTyped = (TargetCharacter.Target)option;
            switch (optionTyped)
            {
            case TargetCharacter.Target.Character:
                return(property.FindPropertyRelative(PROP_CHARACTER));

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

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

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

            return(null);
        }
Esempio n. 2
0
 public TargetCharacter(TargetCharacter.Target target)
 {
     this.target = target;
 }