コード例 #1
0
ファイル: AyuSeekFood.cs プロジェクト: ywang485/fish-killer
 void Start()
 {
     ayuCharacter    = GetComponent <AyuCharacter>();
     goalGameObject  = new GameObject();
     initialPosition = transform.position;
     GoalChange();
     goalChangeTime = Random.Range(0f, 5f);
     goalRelPos     = goalGameObject.transform.position - transform.position;
 }
コード例 #2
0
 void Start()
 {
     ayuCharacter = GetComponent <AyuCharacter>();
 }