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