private void Awake()
 {
     playerSound        = transform.parent.parent.GetComponent <PlayerSoundSetting>();
     Player             = transform.parent.parent.GetComponent <Transform>();
     PlayerViberation   = gameObject.transform.parent.parent.GetComponent <Viberation>();
     MainPoint          = Points[0];
     touchPoints        = new int[skill5.Length];
     line.positionCount = 1;
     line.SetPosition(0, gameObject.transform.position);
     PointsVec.Add(gameObject.transform.position);
 }
 public void reset()
 {
     MainPoint.turnon();
     count         = -1;
     MyPoint       = MainPoint;
     completeTimer = 0.0f;
     TimerOn       = false;
     for (int i = 0; i < touchPoints.Length; ++i)
     {
         touchPoints[i] = 0;
     }
 }
 // Use this for initialization
 private void Awake()
 {
     playerSound        = transform.parent.parent.GetComponent <PlayerSoundSetting>();
     Player             = transform.parent.parent.GetComponent <Transform>();
     PlayerViberation   = gameObject.transform.parent.parent.GetComponent <Viberation>();
     MainPoint          = Points[0];
     touchPoints        = new int[skill5.Length];
     line.positionCount = 1;
     line.SetPosition(0, gameObject.transform.position);
     PointsVec.Add(gameObject.transform.position);
     CompleteSound        = GetComponent <AudioSource>();
     CompleteSound.volume = Singletone.Instance.Sound;
     reset();
     gameObject.SetActive(false);
 }
 public void reset()
 {
     for (int i = 0; i < touchPoints.Length; ++i)
     {
         touchPoints[i] = 0;
     }
     count = -1;
     PointsVec.Clear();
     initPos.Clear();
     completeTimer = 0.0f;
     TimerOn       = false;
     if (MainPoint)
     {
         MainPoint.turnon();
     }
     MyPoint = MainPoint;
 }
Ejemplo n.º 5
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string     uriStr = "";
            PointCheck ck     = (PointCheck)value;

            if (ck == PointCheck.Uncheck)
            {
                uriStr = string.Format(@"/Resources/empty.png");
            }
            if (ck == PointCheck.Bad)
            {
                uriStr = string.Format(@"/Resources/error.png");
            }
            if (ck == PointCheck.Ok)
            {
                uriStr = string.Format(@"/Resources/valid.png");
            }
            return(new BitmapImage(new Uri(uriStr, UriKind.Relative)));
        }
 public void TouchPoint(PointCheck touchPoint)
 {
     MyPoint = touchPoint;
     if (count >= 0)
     {
         for (int i = 0; i < Points.Length; ++i)
         {
             if (MyPoint == Points[i])
             {
                 if (touchPoints != null)
                 {
                     touchPoints[count] = i;
                     Debug.Log("터치포인트");
                     Debug.Log(touchPoints[count]);
                 }
                 break;
             }
         }
     }
 }
 public void TouchPoint(PointCheck touchPoint)
 {
     MyPoint            = touchPoint;
     line.positionCount = count + 1;
     line.SetPosition(count, MyPoint.transform.position);
     PointsVec.Add(MyPoint.transform.position);
     initPos.Add(Player.position);
     if (count >= 0)
     {
         for (int i = 0; i < Points.Length; ++i)
         {
             if (MyPoint == Points[i])
             {
                 if (touchPoints != null)
                 {
                     touchPoints[count] = i;
                 }
                 break;
             }
         }
     }
 }
 public static デマンドの乗降位置の確認_Response デマンドの乗降位置の確認_Execute(double lat, double lon, ref string msg)
 {
     msg = "";
     try
     {
         Task <MiraiShareResult> r = Task.Run(() =>
         {
             PointCheck point = new PointCheck();
             point.latitude   = lat;
             point.longitude  = lon;
             var json         = JsonConvert.SerializeObject(point);
             var res          = GenericPost(miraiShareURL + "sav/geo/point", json);
             return(res);
         });
         Task.WaitAll(r);
         msg = "OK";
         return(JsonConvert.DeserializeObject <デマンドの乗降位置の確認_Response>(r.Result.receiveJson));
     }
     catch (Exception ex)
     {
         msg = ex.Message + ex.StackTrace;
         return(null);
     }
 }
Ejemplo n.º 9
0
 public void Upcount(PointCheck col)
 {
     //Skills[mySkills[mytype]].UpCount();
     Skills[mySkills[mytype]].TouchPoint(col);
 }
Ejemplo n.º 10
0
 public BadPointsCheck(int id)
 {
     Check1 = PointCheck.Uncheck;
     Check2 = PointCheck.Uncheck;
     Check3 = PointCheck.Uncheck;
 }
 private void Awake()
 {
     MainPoint   = Points[0];
     touchPoints = new int[skill5.Length];
 }