示例#1
0
文件: Game.cs 项目: klaxorx/DigDug
    // Use this for initialization
    void Awake()
    {
        tileManager = GetComponent<TileManager> ();
        playerManager = GetComponent<PlayerManager> ();
        source = gameObject.GetComponent<AudioSource>();

        //Centre camera on middle of tiles
        Vector2 cameraPos = tileManager.GetCentrePoint ();
        gameCam.SetPosition(new Vector3 (cameraPos.x, cameraPos.y, gameCam.transform.localPosition.z));
    }