示例#1
0
 // Start is called before the first frame update
 void OnEnable()
 {
     player           = FindObjectOfType <PlayerAllinOne>().gameObject;
     playerAllInOne   = FindObjectOfType <PlayerAllinOne>();
     playerSpawnPoint = this.transform.position;
 }
示例#2
0
 void OnEnable()
 {
     playerAllInOne = FindObjectOfType <PlayerAllinOne>();
 }