Esempio n. 1
0
 public CustomizeComponentPool(string name, AllocateFunc alloc, RequestHandler requestHandler, ReleaseHandler releaseHandler) : base(name)
 {
     if (alloc == null)
     {
         throw new System.ArgumentNullException("alloc");
     }
     _allocFunc      = alloc;
     _requestHandler = requestHandler;
     _releaseHandler = releaseHandler;
 }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        Debug.Log("Adding to press");
        press   += StartDrawing;
        release += StopDrawing;
        move    += Move;

#if UNITY_EDITOR || UNITY_STANDALONE_WIN
        handleInput += _MouseInputHandler;
#elif UNITY_ANDROID
        handleInput += _TouchInputHandler;
#endif
    }
Esempio n. 3
0
 public CustomizeComponentPool(AllocateFunc alloc, RequestHandler requestHandler, ReleaseHandler releaseHandler) : this("CustomizeComponentPool", alloc, requestHandler, releaseHandler)
 {
 }