コード例 #1
0
    protected RaycastHit hit;                               //射线检测输出



    private void Awake()
    {
        enmeyfunc = GetComponent <EnemyFunc>();
    }
コード例 #2
0
 private void Start()
 {
     enemy = this.transform.parent.GetChild(0).GetComponent <EnemyFunc>();
 }