// Use this for initialization void Awake() { fallAppleSound = GetComponent <G20_FallAppleSound>(); enemyAnim = GetComponent <G20_EnemyAnimation>(); characon = GetComponent <CharacterController>(); fallAppleSound.firstCollisionHItAction += _ => ChangeWalk(); }
public void Init() { enemy = GetComponent <G20_Enemy>(); animPlayer = enemy.anim; enemy.deathActions += (x, y) => DeathEnemy(); ChildInit(); }