摘要:
using UnityEngine; using System.Collections;using System.Diagnostics;using UnityEngine.SceneManagement;using System.Collections.Generic;using System.L 阅读全文
摘要:
Input类中的常用方法 bool w=Input.GetKey(KeyCode.W);//检测是否按下键盘W Input.GetKeyDown(KeyCode.W);//表示检测按下时 Input.GetKeyUp(KeyCode.W);//表示检测按键弹起时 Input.GetMouseButt 阅读全文
摘要:
无论Time.timeScale 等于多说Update和LateUpdate都会去执行 Time.timeScale会影响FixedUpdate的速度。 Time.timeScale还会影响Time.time的时间,比如Time.timeScale = 2的话,那么Time.time的增长速度也会变 阅读全文
摘要:
public class AutoDestoryComponent : MonoBehaviour { #region ICanCache public ParticleSystem[] m_pss = null; public int m_life = 1; //3条命 public float 阅读全文