public void DeActivate() { wolvesRun(false); state = E_HHUltState.DeActivate; transform.SetPositionAndRotation(transform.parent.position, transform.parent.rotation); gameObject.SetActive(false); }
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); }
public void Activate(Vector3 activatePos, Quaternion activeRot) { StopAllCoroutines(); transform.SetPositionAndRotation(activatePos, activeRot); state = E_HHUltState.Activate; gameObject.SetActive(true); wolvesRun(true); StartCoroutine(ActivateMove()); }
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); } }
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)); }