コード例 #1
0
 void Start()
 {
     SFX = GameObject.Find("CaixaDeSom").GetComponent <EfeitoSonoro>();
     if (Principal.CompareTag("Player"))
     {
         ctrAnim = Principal.transform.GetComponent <ControleDeAnimacao>();
     }
     else
     {
         ctrAnimIni = Principal.transform.GetComponent <ControleDeAnimacaoInimigo>();
     }
 }
コード例 #2
0
ファイル: InimigoIA.cs プロジェクト: ClawNarok/USJT-Arthur
 void Awake()
 {
     agent   = GetComponent <NavMeshAgent>();
     ctrAnim = GetComponent <ControleDeAnimacaoInimigo>();
 }