protected override void Awake()
 {
     base.Awake();
     hitbox          = GetComponent <Collider>();
     rotateAndBounce = GetComponentInChildren <RotateAndBounce>();
     rotateAndBounce.SetOrigin(transform.position);
 }
Exemple #2
0
        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);
        }