public InterfaceModuleConvStick(IEventHandlerVirtualJoystick reciever, Image imgBack, Image imgFront) { this.imgBack = imgBack; this.imgFront = imgFront; //typeRelevant = TypeRelevant.AT_ORIGIN; //typeSpace = TypeSpace.SCREEN; //typeFallThrough = TypeFallthrough.NOT_RELEVANT; eventModules.Add(new EventModuleConvStick(reciever, imgBack, imgFront)); }
public EventModuleConvStick(IEventHandlerVirtualJoystick reciever, Image imgBack, Image imgFront) { this.reciever = reciever; this.imgBack = imgBack; this.imgFront = imgFront; rectTransBack = imgBack.GetComponent <RectTransform>(); rectTransFront = imgFront.GetComponent <RectTransform>(); eventModuleTap = new EventModuleTap(); eventModuleTap.timePressMax = 0.3f; eventModuleTap.isNotifier = false; timeSinceTap = eventModuleTap.timePressMax + 1; }
private Image[] images; // images[ front, back, right, left, up, down ] public InterfaceModuleVirtualJoystick(IEventHandlerVirtualJoystick eventHandlerVirtualJoystick, Image[] images) { this.images = images; eventModules.Add(new EventModuleVirtualJoystick(eventHandlerVirtualJoystick, images)); }
public EventModuleVirtualJoystick(IEventHandlerVirtualJoystick reciever, Image[] images) { this.reciever = reciever; this.images = images; }