protected override void Awake() { base.Awake(); hitbox = GetComponent <Collider>(); rotateAndBounce = GetComponentInChildren <RotateAndBounce>(); rotateAndBounce.SetOrigin(transform.position); }
public override void Activate(Vector3 pos, Quaternion rot) { base.Activate(pos, rot); foreach (GameObject go in disableObjects) { go.SetActive(true); } hitbox.enabled = true; rotateAndBounce.SetOrigin(pos); }