public void AddField(string Name, SemanticFieldType FieldType)
        {
            SemanticField sf = new SemanticField();

            sf.Name      = Name;
            sf.FieldType = FieldType;
            Fields.Add(sf);
        }
Exemple #2
0
        void OnTriggerEnter(Collider collider)
        {
            if (collider.tag == "Semantic Field")
            {
                SemanticField semanticField = collider.gameObject.GetComponentInChildren <SemanticField>();

                currentSemanticField = semanticField.GetSemanticField;
            }
        }
Exemple #3
0
        void OnTriggerExit(Collider collider)
        {
            if (collider.tag == "Semantic Field")
            {
                SemanticField semanticField = collider.gameObject.GetComponentInChildren <SemanticField>();

                if (currentSemanticField == semanticField.GetSemanticField)
                {
                    currentSemanticField = SemanticFields.Calle;
                }
            }
        }