public override void OnStart()
    {
        if (Vector3.Distance(transform.position, target.Value.position) > isFarOrCloseDistance)
        {
            numOfPattern.Value = 1;
        }

        colliderConScript = GetComponent <DistacneAttackTypeNormalColliderCon>();
        hpPostionScript   = GetComponent <EnemyHpPostionScript>();
        aniScript         = GetComponent <DistanceAttackTypeNormalAni>();
    }
Exemple #2
0
 public override void OnStart()
 {
     colliderConScript = GetComponent <DistacneAttackTypeNormalColliderCon>();
     ani             = GetComponent <DistanceAttackTypeNormalAni>();
     hpPostionScript = GetComponent <EnemyHpPostionScript>();
 }