Tru*_*ude 2 c# colors unity-game-engine material unity5
我完成了Unity的roll-a-ball教程,它运行正常.我换了几种材料让它看起来更好.我还添加了一个C#脚本,当玩家从地面掉下来时应重启该级别(我禁用了墙壁).我使用的是Unity 5.5.
但当我离开边缘并重新启动时,它看起来像这样:
在编辑器加载时打开统一后,它有时看起来像这样几秒钟.
这是脚本:
using UnityEngine;
using System.Collections;
public class DeathTrigger : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnTriggerEnter (Collider other)
{
if (other.gameObject.CompareTag("Player"))
Application.LoadLevel(Application.loadedLevel);
}
}
Run Code Online (Sandbox Code Playgroud)
关于是什么导致这个的任何想法?
小智 9
使用光照工具后,每个场景的光照设置只需更改一件事。
前
后
| 归档时间: |
|
| 查看次数: |
2955 次 |
| 最近记录: |