示例#1
0
文件: Timer.cs 项目: lrk07/unity-game
 // Use this for initialization
 void Start()
 {
     startTime = Time.time;
     endTime   = startTime + initTime;
     isTimeOut = false;
     pingwin   = GameObject.FindGameObjectWithTag("Player").GetComponent <Pingwin> ();
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     guardAnimator = gameObject.GetComponent <Animator>();
     pingwin       = GameObject.FindGameObjectWithTag("Player").GetComponent <Pingwin>();
 }
示例#3
0
 // Use this for initialization
 void Start()
 {
     TimeUI.SetActive(false);
     pingwin = GameObject.FindGameObjectWithTag("Player").GetComponent <Pingwin>();
     timer   = GameObject.FindGameObjectWithTag("Timer").GetComponent <Timer> ();
 }
示例#4
0
 void Start()
 {
     pingwin = gameObject.GetComponentInParent <Pingwin>();
 }
示例#5
0
 // Use this for initialization
 void Start()
 {
     pingwin = GameObject.FindGameObjectWithTag("Player").GetComponent <Pingwin>();
 }