示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     shootFactory     = gameObject.GetComponent <ShootFactory>();
     playerController = gameObject.GetComponent <PlayerController>();
 }
示例#2
0
 void Start()
 {
     shootFactory    = gameObject.GetComponent <ShootFactory>();
     enemyController = gameObject.GetComponent <EnemyController>();
     player          = FindObjectOfType <Player>();
 }
 void Start()
 {
     shootFactory = gameObject.GetComponent <ShootFactory>();
 }