/// <summary> /// Will declare an entity in a container with a specific name and visibility /// </summary> /// <param name="to_declare">Type of the entity to declare</param> /// <param name="containerID">Identifier of the container in which declare the entity</param> /// <param name="name">Name of the declared entity</param> /// <param name="visibility">Visibility of the declared entity</param> /// <returns>Identifier of the freshly declared entity</returns> public UInt32 Declare(ENTITY to_declare, UInt32 containerID, string name, VISIBILITY visibility) { if (declarators.ContainsKey(to_declare)) { return(declarators[to_declare].Invoke(this, containerID, name, visibility)); } throw new KeyNotFoundException("No such declarator for ENTITY: " + to_declare.ToString()); }
public Entity GetEntity(ENTITY entity) { return(Resources.Load <GameObject>("Prefabs/Enemies/" + currentEntitySelected.ToString() + "Player").GetComponent <Entity>()); }