public void AddField(string Name, SemanticFieldType FieldType) { SemanticField sf = new SemanticField(); sf.Name = Name; sf.FieldType = FieldType; Fields.Add(sf); }
void OnTriggerEnter(Collider collider) { if (collider.tag == "Semantic Field") { SemanticField semanticField = collider.gameObject.GetComponentInChildren <SemanticField>(); currentSemanticField = semanticField.GetSemanticField; } }
void OnTriggerExit(Collider collider) { if (collider.tag == "Semantic Field") { SemanticField semanticField = collider.gameObject.GetComponentInChildren <SemanticField>(); if (currentSemanticField == semanticField.GetSemanticField) { currentSemanticField = SemanticFields.Calle; } } }