void Update() { // Changing source? if (currentXmlFile != xmlFile) { pattern = LoadPattern(xmlFile); currentXmlFile = xmlFile; Initialize(); } rootBullet.X = transform.position.x; rootBullet.Y = transform.position.y; rootBullet.Update(); }
void Update() { rootBullet.X = transform.position.x; rootBullet.Y = transform.position.y; rootBullet.Update(); }