SAIMA/Assets//太阳/SunControll.cs
GrassTE e285f751bf 制作特效
1.完善了日夜交替的功能,目前太阳位置、灯光和脚本都调试好了。灯光为了方便是用动画做得。
2.完成魔改了爆炸闪光的后处理,只需要调用开关后处理的摄像机即可使用
3.完善了爆炸的烟雾特效。

天亮了。
2022-08-25 05:33:40 +08:00

21 lines
425 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SunControll : MonoBehaviour
{
public float speed;
private float num=-416.45f;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void FixedUpdate()
{
transform.rotation = Quaternion.Euler(new Vector3(0, 0, num-=speed));
}
}