コード例 #1
0
    void Init()
    {
        var firstRoom = RoomManager.Get().firstRoom;

        this.offset = this.transform.position;

        cameraFocus.transform.position =
            firstRoom.startingPos == null ?
            firstRoom.transform.position :
            firstRoom.startingPos.transform.position;

        var flooring = cameraFocus.GetComponentInChildren <Flooring>();

        if (flooring != null)
        {
            flooring.UpdateFlooring();
        }
    }