Skip to content

Commit

Permalink
Temp commit for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tcgj committed Apr 17, 2020
1 parent 20722fb commit fcb16bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Scripts/AI/AiAnimation/AiMushroomAnimation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public override float RandomizeAttack(out string attackName)

public override void SetAttackTrigger(string name)
{
Debug.Log("Trigger " + name);
m_Animator.SetTrigger(name);
}
}
4 changes: 4 additions & 0 deletions Assets/Scripts/Network/MonsterNetworkHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ private void Update()

string attackName = m_aiMonster.GetAttack();
if (attackName.Length > 0)
{
Debug.Log("Sent attack " + attackName);
networkObject.SendRpc(RPC_TRIGGER_ATTACK_ANIM, Receivers.Others, attackName);
}
}
else
{
Expand All @@ -63,6 +66,7 @@ private void Update()

public override void TriggerAttackAnim(RpcArgs args)
{
Debug.Log("received attack");
m_aiMonster.GetMonsterAnimation()?.SetAttackTrigger(args.GetNext<string>());
}
}

0 comments on commit fcb16bc

Please sign in to comment.