コード例 #1
0
ファイル: ActorController.cs プロジェクト: QuinShuai/AIDemo
 // Use this for initialization
 protected virtual void Awake()
 {
     audioSource = GetComponent<AudioSource>();
     animator = GetComponent<Animator>();
     actorInfo = GetComponent<ActorInfoController>();
     gameController = GameObject.FindGameObjectWithTag(Tags.GameController).GetComponent<FightSceneGameController>();
 }
コード例 #2
0
ファイル: AI.cs プロジェクト: QuinShuai/AIDemo
 // Use this for initialization
 protected virtual void Start()
 {
     actorController = GetComponent<ActorController>();
     gameController = GameObject.FindGameObjectWithTag(Tags.GameController).GetComponent<FightSceneGameController>();
 }