Exemple #1
0
 public override void OnEnter()
 {
     //Debug.Log("Freeze Enter");
     CharacterRenderer.material = StateMat;
     CharacterAgent.StopMovement();
     FTM.AddToFrozen();
 }
Exemple #2
0
 public override void OnEnter()
 {
     //Debug.Log("Freeze Enter");
     CharacterRenderer.material = StateMat;
     CharacterAgent.StopMovement();
     FTM.AddToFrozen();
     Cam.gameObject.SetActive(true);
     CharacterAgent.ResetMaxTurnForce(10);
 }
Exemple #3
0
    public override void OnUpdate()
    {
        if (!FTM)
        {
            FTM = FindObjectOfType <FreezeTagManager>();
            FTM.AddToFrozen();
        }
        //Debug.Log("Freeze Update");

        // Rotate Character
        //CharacterAgent.YawTurn();
        CharacterAgent.YawTurn(Input.GetAxis("Horizontal"));
    }