void Awake() { this.animator = this.GetComponent <Animator>(); this.tv = this.GetComponent <PhotonTransformViewClassic>(); if (!this.animator) { Debug.LogError("PlayerAnimatorManager is Missing Animator Component", this); } }
void Start() { pView = GetComponent <PhotonView>(); rBody = GetComponent <Rigidbody>(); pTransform = GetComponent <PhotonTransformViewClassic>(); availableDirections = new List <Direction> { Direction.Up, Direction.Down, Direction.Forward, Direction.Backward, Direction.Right, Direction.Left }; }
private void Awake() { characterController = GetComponent <CharacterController>(); photonView = GetComponent <PhotonView>(); photonTransformViewClassic = GetComponent <PhotonTransformViewClassic>(); if (IsRemote) { FindObjectOfType <RemotePlayerInstantiationProvider>().OnRemotePlayerInstantiatedInvoke(this); } }
private void Awake() { pView = GetComponent <PhotonView>(); characterController = GetComponent <CharacterController>(); characterAnimator = GetComponent <Animator>(); pTransform = GetComponent <PhotonTransformViewClassic>(); externalMovement = gameObject.AddComponent <PlayerExternalMovement>(); SetExternalMovement(false); isDashing = false; playerInAir = false; currentSpeed = forwardSpeed; isGrounded = true; canWallJump = true; isWallGliding = false; }
private void Awake() { this.Body = GetComponent<Rigidbody>(); this.Handler = GetComponent<MovementHandler>(); this.PhotonTransformView = GetComponent<PhotonTransformViewClassic>(); }