5.63版本密码:cj4g视频及素材仅供学习参考,不得商用,不妥删除

1,Water在 Environment 里 Skybox未知在以前项目里导入

2,Fog 在Window--Settings里找 NGUI要更新 API

3,动画过时

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerAnimation : MonoBehaviour {
    private PlayerMove move;
   private Animation anim;

    void Start () {
        move = this.GetComponent<PlayerMove>();
        anim = this.GetComponent<Animation>();
    
    
    }
	
	
	void LateUpdate () {
        if (move.state == PlayerState.Moving)
        {
            //anim.Play("Run");
            PlayAnim("Run");
        }
        else if (move.state == PlayerState.Idle)
        {
            //PlayAnim("Idle");
            anim.Play("Idle");
        }
        {


        }
    }
 void PlayAnim(string animName)
    {
       
        
           anim.CrossFade(animName);
        }
    }


4.场景跳转过时

using UnityEngine.SceneManagement;

SceneManager.LoadScene("three");

 

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐