示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     bullet     = Resources.Load <GameObject>("Objects/obj_ball");
     explosion  = Resources.Load <GameObject>("Objects/obj_explosion");
     world      = GameObject.Find("Tomato").GetComponent <scr_world>();
     screensize = new Vector2(world.screensize.x + 5, world.screensize.y + 5);
     r          = this.GetComponent <SpriteRenderer>();
     path       = new List <Vector2>();
     Typify();
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     world      = GameObject.Find("Tomato").GetComponent <scr_world>();
     screensize = new Vector2(world.screensize.x + 3, world.screensize.y + 3);
 }