Download the Ecosystem Browser to find new actions, samples. etc.
using UnityEngine;namespace HutongGames.PlayMaker.Actions{ [ActionCategory("Photon")] [Tooltip("Gets if the PhotonNetwork is offline or not. Offline mode can be set to re-use your multiplayer code in singleplayer game modes." + "\n When this is on PhotonNetwork will not create any connections and there is near to " + "no overhead. Mostly usefull for reusing RPC's and PhotonNetwork.Instantiate")] //[HelpUrl("https://hutonggames.fogbugz.com/default.asp?W1108")] public class PhotonNetworkGetOfflineMode : FsmStateAction { private bool offlineMode; [Tooltip("Event to send if the Bool variable is True.")] public FsmEvent isTrue; [Tooltip("Event to send if the Bool variable is False.")] public FsmEvent isFalse; public override void Reset() { isTrue = null; isFalse = null; } public override void OnEnter() { offlineMode = PhotonNetwork.offlineMode; Fsm.Event(offlineMode ? isTrue : isFalse); Finish(); } }}