// 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(); }
// 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); }