float zoomMax = -1f; // Zoomed in value // Create movers void CreateObjects() { // lets create 10 mover sprites for (int i = 0; i < 10; i++) { CMover4 mov = Instantiate(moverPrototype) as CMover4; OTSprite s = mov.GetComponent <OTSprite>(); // hook up onInput delegate to handle clicking on a mover s.onInput = OnInput; } }
float zoomMax = -1f; // Zoomed in value // Create movers void CreateObjects() { // lets create 10 mover sprites for (int i = 0; i < 10; i++) { CMover4 mov = OT.CreateSprite("mover").GetComponent <CMover4>(); OTSprite s = mov.GetComponent <OTSprite>(); // hook up onInput delegate to handle clicking on a mover s.onInput = OnInput; } }