Пример #1
0
    void Start()
    {
        keyCounter = GameObject.FindGameObjectWithTag("KeyCounter").GetComponent <Text>();
        player     = GameObject.FindGameObjectWithTag("Player");
        templates  = GameObject.FindGameObjectWithTag("Tiles").GetComponent <TileTemplates>();

        audiosource = GetComponent <AudioSource>();
    }
Пример #2
0
    void Start()
    {
        templates = GameObject.FindGameObjectWithTag("Tiles").GetComponent <TileTemplates>();
        map       = GameObject.FindGameObjectWithTag("Map");
        movePoint = transform.parent.GetChild(0).gameObject;

        Invoke("Spawn", 0.05f);
    }
Пример #3
0
	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>();

    }
Пример #4
0
        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);
            }
        }
Пример #5
0
 void Start()
 {
     templates = GameObject.FindGameObjectWithTag("Tiles").GetComponent <TileTemplates>();
 }
Пример #6
0
 void Start()
 {
     templates = GameObject.FindGameObjectWithTag("Tiles").GetComponent <TileTemplates>();
     templates.tiles.Add(this.gameObject);
 }