Exemplo n.º 1
0
 private void Start()
 {
     if (name == "Robot")
     {
         robDead = GetComponentInChildren <RobotDead>();
     }
     if (name == "ParticalRobot")
     {
         int count = 0;
         foreach (RectTransform rec in Enemy.GetComponentsInChildren <RectTransform>())
         {
             if (!rec.CompareTag("Partical"))
             {
                 buf[count++] = rec;
             }
         }
         if (MessageSystemGameBlock.IsInicializeRobot)
         {
             gameObject.SetActive(false);
         }
         else
         {
             MessageSystemGameBlock.IsInicializeRobot = true;
         }
     }
     if (name == "EnemyPartical")
     {
         int count = 0;
         foreach (RectTransform rec in GetComponentsInChildren <RectTransform>())
         {
             if (rec.CompareTag("Partical"))
             {
                 buf[count++] = rec;
             }
         }
         gameObject.SetActive(false);
     }
 }
Exemplo n.º 2
0
 private void Start()
 {
     robotScript = robot.GetComponent <Robot>();
     robDead     = GetComponent <RobotDead>();
 }
Exemplo n.º 3
0
 private void Start()
 {
     robDead = robot.GetComponent <RobotDead>();
 }