示例#1
0
    /// <summary>
    /// Set this checkpoint animation state
    /// </summary>
    /// <param name="_state"></param>
    public void SetAnimState(int _state)
    {
        CheckpointAnimState _animState = (CheckpointAnimState)_state;

        switch (_animState)
        {
        case CheckpointAnimState.Desactivated:
            animator.SetBool("Activated", false);
            break;

        case CheckpointAnimState.Resurrect:
            animator.SetTrigger("Resurrect");
            break;

        case CheckpointAnimState.Activated:
            animator.SetBool("Activated", true);
            break;

        default:
            break;
        }
    }
示例#2
0
 /// <summary>
 /// Set this checkpoint animation state
 /// </summary>
 /// <param name="_state"></param>
 public void SetAnimState(CheckpointAnimState _state)
 {
     TDS_RPCManager.Instance?.RPCPhotonView.RPC("CallMethodOnline", PhotonTargets.All, TDS_RPCManager.GetInfo(photonView, GetType(), "SetAnimState"), new object[] { (int)_state });
 }