• 大小: 17.46MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-06
  • 语言: 其他
  • 标签: Unity  

资源简介

Unity按照官方教程完成Roll a Ball。不包含任何导入资源。

资源截图

代码片段和文件信息

//CameraController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameraController : MonoBehaviour {
public Gameobject player;
private Vector3 offset;
// Use this for initialization
void Start () {
offset = transform.position - player.transform.position;//得出运行开始的固定偏移
}

// Update is called once per frame
void LateUpdate () {
transform.position = player.transform.position
+ offset;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-11-10 17:48  RollABall\
     文件        7204  2018-11-10 17:36  RollABall\Assembly-CSharp.csproj
     目录           0  2018-10-28 21:36  RollABall\Assets\
     目录           0  2018-10-28 22:49  RollABall\Assets\Materials\
     文件        2025  2018-10-28 19:58  RollABall\Assets\Materials\Background.mat
     文件         230  2018-10-28 16:06  RollABall\Assets\Materials\Background.mat.meta
     文件        2003  2018-10-28 22:49  RollABall\Assets\Materials\Pickup.mat
     文件         230  2018-10-28 21:46  RollABall\Assets\Materials\Pickup.mat.meta
     文件         214  2018-10-28 16:05  RollABall\Assets\Materials.meta
     目录           0  2018-10-30 11:47  RollABall\Assets\Prefabs\
     文件        3576  2018-10-30 11:47  RollABall\Assets\Prefabs\PickUp.prefab
     文件         232  2018-10-28 21:37  RollABall\Assets\Prefabs\PickUp.prefab.meta
     文件         214  2018-10-28 21:36  RollABall\Assets\Prefabs.meta
     目录           0  2018-10-29 11:23  RollABall\Assets\scripts\
     文件         496  2018-10-28 22:53  RollABall\Assets\scripts\CameraController.cs
     文件         285  2018-10-28 20:08  RollABall\Assets\scripts\CameraController.cs.meta
     文件        1104  2018-10-29 11:23  RollABall\Assets\scripts\PlayerController.cs
     文件         285  2018-10-28 16:25  RollABall\Assets\scripts\PlayerController.cs.meta
     文件         297  2018-10-28 21:53  RollABall\Assets\scripts\Rotator.cs
     文件         285  2018-10-28 21:23  RollABall\Assets\scripts\Rotator.cs.meta
     文件         214  2018-10-28 16:23  RollABall\Assets\scripts.meta
     目录           0  2018-10-30 11:34  RollABall\Assets\_scenes\
     文件       61977  2018-10-30 11:34  RollABall\Assets\_scenes\MainGame.unity
     文件         197  2018-10-28 15:42  RollABall\Assets\_scenes\MainGame.unity.meta
     文件         214  2018-10-28 15:42  RollABall\Assets\_scenes.meta
     目录           0  2018-10-30 13:18  RollABall\Build\
     文件    22302656  2018-03-26 18:27  RollABall\Build\UnityPlayer.dll
     文件      650752  2018-10-30 13:18  RollABall\Build\roll a ball.exe
     目录           0  2018-10-30 13:18  RollABall\Build\roll a ball_Data\
     目录           0  2018-10-30 13:18  RollABall\Build\roll a ball_Data\Managed\
     文件        5120  2018-10-30 13:18  RollABall\Build\roll a ball_Data\Managed\Assembly-CSharp.dll
............此处省略1177个文件信息

评论

共有 条评论