void Put_Skill3()
    {
        Message shit = new Message()
        {
            type = 7,
            Type = num.id.ToString(),
            v3   = moveDirection
        };

        SendThread.put(shit);
    }
    void Put_onAttack()
    {
        Message shit = new Message()
        {
            type = 4,
            Type = num.id.ToString(),
            v3   = moveDirection
        };

        SendThread.put(shit);
    }
Beispiel #3
0
 /* private void FixedUpdate()
  * {
  *       Vector3 moveDirection = new Vector3(dir.normalized.x, 0, dir.normalized.y) * Mathf.Cos(angel);
  *       moveDirection = -moveDirection * num.speed * 0.03f;
  *       Message f**k = new Message()
  *       {
  *           type = 3,
  *           Type = num.id.ToString(),
  *           v3 = moveDirection
  *       };
  *       SendThread.put(f**k);
  *
  * }*/
 IEnumerator getInput()
 {
     while (true)
     {
         //print ("f**k");
         Vector3 moveDirection = new Vector3(dir.normalized.x, 0, dir.normalized.y) * Mathf.Cos(angel);
         moveDirection = -moveDirection * num.speed * 0.06f;
         Message f**k = new Message()
         {
             type = 3,
             Type = num.id.ToString(),
             v3   = moveDirection
         };
         SendThread.put(f**k);
         yield return(new WaitForSeconds(0.03f));
     }
 }
 IEnumerator getInput()
 {
     while (true)
     {
         //print ("f**k");
         moveDirection = new Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
         moveDirection = moveDirection * speed * 0.03f;
         Message f**k = new Message()
         {
             type = 3,
             Type = num.id.ToString(),
             v3   = moveDirection
         };
         //string shit = moveDirection.x.ToString() + " " + moveDirection.z.ToString ();
         //Logout.Log(shit);
         SendThread.put(f**k);
         yield return(new WaitForSeconds(0.03f));
     }
 }