示例#1
0
    // Update is called once per frame
    void Update()
    {
        remainingDistance = CollisionCheck.GetDistance(transform.position, player.transform.position);

        if (remainingDistance < attackRange)
        {
            //AttackInit(player);
            return;
        }

        //jalan
        Movement(CollisionCheck.GetDirection(transform.position, player.transform.position).x);

        //if(remainingDistance > maxAttackRange)
        //{
        //    //matiin movdir y;
        //}
    }