void Start() { keyCounter = GameObject.FindGameObjectWithTag("KeyCounter").GetComponent <Text>(); player = GameObject.FindGameObjectWithTag("Player"); templates = GameObject.FindGameObjectWithTag("Tiles").GetComponent <TileTemplates>(); audiosource = GetComponent <AudioSource>(); }
void Start() { templates = GameObject.FindGameObjectWithTag("Tiles").GetComponent <TileTemplates>(); map = GameObject.FindGameObjectWithTag("Map"); movePoint = transform.parent.GetChild(0).gameObject; Invoke("Spawn", 0.05f); }
void Start () { facing = Direction.North; buttonHeld = ButtonDir.None; uiButtons = GameObject.FindGameObjectWithTag("Buttons"); buttonColours = uiButtons.transform.GetChild(0).GetComponent<Button>().colors; audiosource = GetComponent<AudioSource>(); templates = GameObject.FindGameObjectWithTag("Tiles").GetComponent<TileTemplates>(); }
public string this[string key] { get { string value = null; if (properties.ContainsKey(key)) { value = properties[key]; } else if (TileTemplates.Get(TemplateId).Properties.ContainsKey(key)) { value = TileTemplates.Get(TemplateId).Properties[key]; } return(value ?? string.Empty); } }
void Start() { templates = GameObject.FindGameObjectWithTag("Tiles").GetComponent <TileTemplates>(); }
void Start() { templates = GameObject.FindGameObjectWithTag("Tiles").GetComponent <TileTemplates>(); templates.tiles.Add(this.gameObject); }