예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        body  = GetComponent <Rigidbody2D>();
        anim  = GetComponent <Animator>();
        state = new EnemyIdleState();
        input = new ChungusInput();
        AttackController attackController = gameObject.GetComponentInChildren <AttackController>();

        attackController.SetDamage(1);
        attackController.SetPersistent();
        attackController.SetKnockback(250f);
        base.Start();
    }