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); } }
private void Start() { robotScript = robot.GetComponent <Robot>(); robDead = GetComponent <RobotDead>(); }
private void Start() { robDead = robot.GetComponent <RobotDead>(); }