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; }
// 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 }
public CustomizeComponentPool(AllocateFunc alloc, RequestHandler requestHandler, ReleaseHandler releaseHandler) : this("CustomizeComponentPool", alloc, requestHandler, releaseHandler) { }