private void Start()
 {
     inside = false;
     cm     = Camera.main.gameObject.GetComponent <CameraZoomOut>();
     cf     = Camera.main.gameObject.GetComponent <CamFollow>();
     Sp1.SetActive(false);
     Sp2.SetActive(false);
     Sp3.SetActive(false);
     cm.enabled = false;
 }
Esempio n. 2
0
 public static void Update(List <Keys> pressedKeys)
 {
     Up.Append((uint)(pressedKeys.Contains(Keys.Up) ? 1 : 0));
     Down.Append((uint)(pressedKeys.Contains(Keys.Down) ? 1 : 0));
     Left.Append((uint)(pressedKeys.Contains(Keys.Left) ? 1 : 0));
     Right.Append((uint)(pressedKeys.Contains(Keys.Right) ? 1 : 0));
     Button1.Append((uint)(pressedKeys.Contains(Keys.Enter) ? 1 : 0));
     Button2.Append((uint)(pressedKeys.Contains(Keys.Space) ? 1 : 0));
     Sp1.Append((uint)(pressedKeys.Contains(Keys.Z) ? 1 : 0));
     Sp2.Append((uint)(pressedKeys.Contains(Keys.X) ? 1 : 0));
 }
 private void Update()
 {
     if (inside)
     {
         cf.enabled = false;
         cm.enabled = true;
         Sp1.SetActive(true);
         Sp2.SetActive(true);
         Sp3.SetActive(true);
     }
 }
Esempio n. 4
0
 public override string ToString()
 {
     return($"{Sp1.ToString("X2")} {Sp2.ToString("X2")} {Sp3.ToString("X2")} {Sp4.ToString("X2")} ({Name})");
 }