Example #1
0
 public void MoveSmallChar2()
 {
     //res1 -> res2
     if (RPS_GameManager.GetCnt() == 5)
     {
         res1 = SmallCharacter.transform.position;
         float step = speed * Time.deltaTime;
         SmallCharacter.transform.position = Vector2.MoveTowards(res1, res2, step);
         currPosition = SmallCharacter.transform.position;
     }
 }
Example #2
0
 public void MoveToTown()
 {
     //게임 5판을 완료하면 마을로 돌아감
     if (RPS_GameManager.GetCnt() == 5)
     {
         this.gameObject.transform.position = new Vector3(0f, 0f, -10f);
         onGame = 0;
     }
 }