Пример #1
0
 public static void addListener(TextureSharedDelegate sharedCallback, SenderStoppedDelegate stoppedCallback)
 {
     if (!isInit)
     {
         Init();
     }
     texSharedDelegate     += sharedCallback;
     senderStoppedDelegate += stoppedCallback;
 }
Пример #2
0
 public static void removeListener(TextureSharedDelegate sharedCallback, SenderStoppedDelegate stoppedCallback)
 {
     if (_instance == null)
     {
         return;
     }
     _instance.texSharedDelegate     -= sharedCallback;
     _instance.senderStoppedDelegate -= stoppedCallback;
 }
Пример #3
0
 public void addListener(TextureSharedDelegate sharedCallback, SenderStoppedDelegate stoppedCallback)
 {
     //	Debug.Log ("Spout.addListener");
     if (_instance == null)
     {
         return;
     }
     _instance.texSharedDelegate     += sharedCallback;
     _instance.senderStoppedDelegate += stoppedCallback;
 }
Пример #4
0
		public static void removeListener(TextureSharedDelegate sharedCallback, SenderStoppedDelegate stoppedCallback )
		{
			//	Debug.Log ("Spout.removeListener");
			if(_instance == null)return;
			_instance.texSharedDelegate -= sharedCallback;
			_instance.senderStoppedDelegate -= stoppedCallback;
		}	
Пример #5
0
	public static void addListener(TextureSharedDelegate sharedCallback, SenderStoppedDelegate stoppedCallback )
	{
		if(!isInit) Init ();
		texSharedDelegate += sharedCallback;
		senderStoppedDelegate += stoppedCallback;
	}