private void changeChupito(kind_shot shot) { my_shot = shot; var sprite = Resources.Load <Sprite>("Props/" + my_shot + "_shot"); gameObject.GetComponent <SpriteRenderer>().sprite = sprite; }
internal void restartObject(GameObject _padre, kind_shot _shot) { isActive = true; this.gameObject.SetActive(true); agarrado = false; GlassManager = _padre.GetComponent <GlassManager>(); transform.position = GlassManager.originPosition; IsLeft = GlassManager.direccionDeSpawnIsLeft; if (rb != null) { rb.isKinematic = false; rb.WakeUp(); } hand = null; onAir = false; full = true; GetComponent <Collider2D>().isTrigger = false; changeChupito(_shot); }