Ejemplo n.º 1
0
 public void Game_Disapper()
 {
     TransNum -= 0.2f;
     Point_star_3.GetComponent <Image>().color = new Color(1, 1, 1, TransNum);
     if (TransNum <= 0)
     {
         CancelInvoke();
     }
 }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     Point_star_1 = GameObject.Find("Aim Point 1");
     Point_star_2 = GameObject.Find("Aim Point 2");
     Point_star_3 = GameObject.Find("Aim Point 3");
     //P_camera = GameObject.Find("Main Camera");
     Point_star_2.SetActive(false);
     Point_star_3.SetActive(false);
 }
Ejemplo n.º 3
0
 public void hit_target()
 {
     Point_star_3.SetActive(true);
     TransNum = 1;
     InvokeRepeating("Game_Disapper", 0.01f, 0.08f);
 }