// Update is called once per frame
    void Update()
    {
        if (PhotonNetwork.isMasterClient)
        {
            if (waypoints.Count > 0)
            {
                msControl.UpdateMovementInformation(MovementControl.MovementState.ATTACKMOVE, transform, waypoints[0]);
                if (msControl.OnApproach())
                {
                    waypoints.RemoveAt(0);
                }
            }
            else
            {
                msControl.UpdateStateInfo(MovementControl.MovementState.STOPATTACK);
            }

            if (minionInfo.Dead)
            {
                PhotonNetwork.Destroy(gameObject);
            }
        }
    }