void createThrowable(string l, bool isTrace) { GameObject t = Instantiate(throwable_prefab) as GameObject; t.transform.parent = this.transform; t.transform.localPosition = new Vector3(spriteRenderer.bounds.extents.x, 0, 0); Throwable th = t.GetComponent <Throwable> (); th.Init(); th.setLetter(l); th.setTrace(isTrace); //if it's a trace, launch it if (isTrace) { throwable = th; th.launch(throwable_angle, transform.position); } }