コード例 #1
0
 /// <summary>
 /// On Start we grab our Health component
 /// </summary>
 protected virtual void Start()
 {
     _health = this.gameObject.GetComponent <Health>();
 }
コード例 #2
0
 /// <summary>
 /// On init we grab our Health component
 /// </summary>
 public override void Initialization()
 {
     _health = _brain.gameObject.GetComponent <Health>();
 }