コード例 #1
0
 private void Awake()
 {
     uti           = gameObject.GetComponent <EnemyRedUtility>();
     bulletStorage = GameObject.FindWithTag("BulletStorage");
 }
コード例 #2
0
 void Start()
 {
     startPos = transform.position;  //store the initial position to offset the sin movement later on
     uti      = gameObject.GetComponent <EnemyRedUtility>();
 }