/** * <summary>Creates a new instance of the 'Player: Teleport inactive' Action</summary> * <param name = "playerID">The ID number of the Player to teleport</param> * <param name = "newTransform">The new Transform for the Player to take</param> * <param name = "newCamera">If set, the camera that will be active when the Player is next switched to</param> * <returns>The generated Action</returns> */ public static ActionPlayerTeleportInactive CreateNew(int playerID, PlayerStart newPlayerStart, _Camera newCamera = null) { ActionPlayerTeleportInactive newAction = (ActionPlayerTeleportInactive)CreateInstance <ActionPlayerTeleportInactive>(); newAction.playerID = playerID; newAction.newTransform = newPlayerStart; return(newAction); }
/** * <summary>Creates a new instance of the 'Player: Teleport inactive' Action</summary> * <param name = "playerID">The ID number of the Player to teleport</param> * <param name = "newTransform">The new Transform for the Player to take</param> * <param name = "newCamera">If set, the camera that will be active when the Player is next switched to</param> * <returns>The generated Action</returns> */ public static ActionPlayerTeleportInactive CreateNew(int playerID, Transform newTransform, _Camera newCamera = null) { ActionPlayerTeleportInactive newAction = (ActionPlayerTeleportInactive)CreateInstance <ActionPlayerTeleportInactive>(); newAction.playerID = playerID; newAction.newTransform = newTransform; newAction.associatedCamera = newCamera; return(newAction); }