예제 #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>();
 }
예제 #3
0
 void Start()
 {
     shootFactory = gameObject.GetComponent <ShootFactory>();
 }