Esempio n. 1
0
        public void AddField(string Name, SemanticFieldType FieldType)
        {
            SemanticField sf = new SemanticField();

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

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

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