public override void OnEnter() { //Debug.Log("Freeze Enter"); CharacterRenderer.material = StateMat; CharacterAgent.StopMovement(); FTM.AddToFrozen(); }
public override void OnEnter() { //Debug.Log("Freeze Enter"); CharacterRenderer.material = StateMat; CharacterAgent.StopMovement(); FTM.AddToFrozen(); Cam.gameObject.SetActive(true); CharacterAgent.ResetMaxTurnForce(10); }
public override void OnUpdate() { if (!FTM) { FTM = FindObjectOfType <FreezeTagManager>(); FTM.AddToFrozen(); } //Debug.Log("Freeze Update"); // Rotate Character //CharacterAgent.YawTurn(); CharacterAgent.YawTurn(Input.GetAxis("Horizontal")); }