예제 #1
0
 public void DeActivate()
 {
     wolvesRun(false);
     state = E_HHUltState.DeActivate;
     transform.SetPositionAndRotation(transform.parent.position, transform.parent.rotation);
     gameObject.SetActive(false);
 }
예제 #2
0
 public void DeActivate()
 {
     wolvesRun(false);
     state = E_HHUltState.DeActivate;
     transform.SetPositionAndRotation(transform.parent.position, transform.parent.rotation);
     showEffects.transform.SetPositionAndRotation(Vector3.zero, Quaternion.identity);
     showEffects.SetActive(false);
     gameObject.SetActive(false);
 }
예제 #3
0
 public void Activate(Vector3 activatePos, Quaternion activeRot)
 {
     StopAllCoroutines();
     transform.SetPositionAndRotation(activatePos, activeRot);
     state = E_HHUltState.Activate;
     gameObject.SetActive(true);
     wolvesRun(true);
     StartCoroutine(ActivateMove());
 }
예제 #4
0
 private void OnTriggerExit(Collider other)
 {
     if (!attachingHero.photonView.IsMine)
     {
         return;
     }
     if (other.gameObject.CompareTag(Constants.outLineTag))
     {
         state = E_HHUltState.DeActivate;
         attachingHero.photonView.RPC("HHHUltDeActivate", Photon.Pun.RpcTarget.All);
     }
 }
예제 #5
0
        public void Activate(Vector3 activatePos, Quaternion activeRot)
        {
            StopAllCoroutines();
            transform.SetPositionAndRotation(activatePos, activeRot);
            Vector3 planeNormalV = transform.localToWorldMatrix.MultiplyVector(
                (transform.localPosition + Vector3.forward) - transform.localPosition

                );

            planeNormalV.Normalize();
            showEffects.SetActive(true);
            SetShowEffectPotal(activatePos, activeRot, planeNormalV);

            state    = E_HHUltState.Activate;
            velocity = StartVelocity;
            transform.Translate(Vector3.back * (distance), Space.Self);
            gameObject.SetActive(true);
            wolvesRun(true);

            StartCoroutine(ActivateMove(activatePos, planeNormalV));
        }