示例#1
0
        void Start()
        {
            meInputManager = GameObject.Find("MEGameController").GetComponent <MEInputManager>();
            background     = transform.FindChild("SpriteHolder").FindChild("Background").GetComponent <SpriteRenderer>();

            initialized = true;
            Player      = _player;
        }
示例#2
0
        void Start()
        {
            inputManager     = GameObject.FindGameObjectWithTag("GameController").GetComponent <MEInputManager>();
            backgroundSprite = GetComponent <SpriteRenderer>();
            borderSprite     = transform.FindChild("Hex Border").GetComponent <SpriteRenderer>();
            terrainSprite    = transform.FindChild("Terrain Sprite").GetComponent <SpriteRenderer>();
            highlightSprite  = transform.FindChild("Highlight").GetComponent <SpriteRenderer>();

            initialized   = true;
            TerrainSprite = _terrain;
        }