public class Blank : Photon.PunBehaviour
instead of mono behavior, use this to receive photon callbacks in your script.
public override void OnLeftRoom()
An example of overriding a punbehavior callback
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| public class BatchExtractMaterials : EditorWindow | |
| { | |
| private enum ExtractMode { Extract = 0, Remap = 1, Ignore = 2 }; | |
| [System.Serializable] |
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| public class BatchExtractMaterials : EditorWindow | |
| { | |
| private enum ExtractMode { Extract = 0, Remap = 1, Ignore = 2 }; | |
| [System.Serializable] |
| using UnityEngine; | |
| using DunGen; | |
| [RequireComponent(typeof(RuntimeDungeon))] | |
| public class DoSomethingOnDungeonComplete : MonoBehaviour | |
| { | |
| private RuntimeDungeon runtimeDungeon; | |
| private void Awake() |
| using UnityEngine; | |
| using UnityEditor; | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.IO; | |
| using System.IO.Compression; | |
| using Ionic.Zip; // this uses the Unity port of DotNetZip https://github.com/r2d2rigo/dotnetzip-for-unity |
| PHP script that uses Unity Publisher API for PHP (https://github.com/LostPolygon/Unity-Publisher-API-PHP) to retrieve new asset sales, put them into a MySQL database, and notify about the sales via e-mail. | |
| Data is inserted into `sales` table, which can be created from sales_table.sql file. Just set up the credentials and put this script on cron with whatever interval you want. Delete the email notification part if you don't need it. | |
| Requires PHP 5.4, php_json extension, and remote socket access. | |
| Also, I know it's ugly, but it does the job and served me well for over a year. |
| // | |
| // QualitySettings/Shadows内のShadow Distance/Shadow Cascades/Cascade splitsをシーンから設定する. | |
| // | |
| // | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| namespace UnityChan | |
| { |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using UnityEngine; | |
| /// <summary> | |
| /// A simple free camera to be added to a Unity game object. | |
| /// | |
| /// Keys: |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using Newtonsoft.Json; | |
| using UnityEngine; | |
| public class UsingJsonDotNetInUnity : MonoBehaviour | |
| { | |
| private void Awake() | |
| { |
| // MIT License | |
| // | |
| // Copyright (c) 2018 Sabresaurus | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: |