Example #1
0
 private void Update()
 {
     if (SwipeManager.IsSwipingLeft())
     {
         Map1.SetActive(false);
         Map2.SetActive(true);
     }
     if (SwipeManager.IsSwipingRight())
     {
         Map1.SetActive(true);
         Map2.SetActive(false);
     }
 }
Example #2
0
 private void Update()
 {
     timer -= Time.deltaTime;
     if (timer < 0)
     {
         if (Map1.activeSelf)
         {
             Map1.SetActive(false);
             Map2.SetActive(true);
             timer = 3f;
         }
         else
         {
             Map1.SetActive(true);
             Map2.SetActive(false);
             timer = 3f;
         }
     }
 }
Example #3
0
 private void Start()
 {
     Map1.SetActive(true);
     Map2.SetActive(false);
 }