private void Awake() { mRigid = GetComponent <Rigidbody>(); mEntity = GetComponent <AI_Controller>(); mAnim = UT_FindComponent.FindComponent <AN_Enemies>(gameObject); mStunParticles = GetComponentInChildren <StunnedParticles>(); }
private void Awake() { mOwner = GetComponent <AI_Controller>(); mGrenadedLogic = GetComponent <AI_GrenadedLogic>(); mStunParticles = GetComponentInChildren <StunnedParticles>(); mStunParticles.Deactivate(); switch (mOwner.GetBase().mType) { case EnemyTypes.GRUNT: sType = "Grunt"; break; case EnemyTypes.LANKY: sType = "Lanky"; break; case EnemyTypes.TANK: sType = "Tank"; break; } }