void Awake() { cameraObject = null; cameraComponent = null; cameraController = null; inputCollider = gameObject.GetComponent <BoxCollider2D>(); inputColliderOriWidth = 0f; inputColliderOriHeight = 0f; inputColliderAltWidth = 0f; inputColliderAltHeight = 0f; inputColliderAltered = false; colliderValid = false; gameController = null; challengeEditor = null; challengeCanvas = null; challengeStage = null; menu = null; textBoxUIManager = null; textBoxManager = null; transactionBoxManager = null; loadVirtualKeypad = false; #if UNITY_ANDROID && !UNITY_EDITOR loadVirtualKeypad = true; #endif interfaceCanvasObject = null; interfaceCanvas = null; interfaceCanvasScreenRect = new Rect(0f, 0f, 0f, 0f); halfCanvasScreenWidth = 0f; halfCanvasScreenHeight = 0f; interfaceCanvasFactor = 0f; stickLeftBackgroundObject = null; stickLeftForegroundObject = null; stickRightBackgroundObject = null; stickRightForegroundObject = null; stickLeftBackgroundTrans = null; stickLeftForegroundTrans = null; stickRightBackgroundTrans = null; stickRightForegroundTrans = null; stickLeftBackgroundImage = null; stickLeftForegroundImage = null; stickRightBackgroundImage = null; stickRightForegroundImage = null; buttonObjectPause = null; buttonComponentPause = null; buttonTriggerPause = null; buttonImagePause = null; actionPressPause = null; visualBlockRequested = false; functionalBlockRequested = false; blockerEventIDs = null; controlsEnabled = false; virtualKeypadVisible = false; cameraPixelWidth = 0; cameraPixelHeight = 0; draggingLeftStick = false; draggingRightStick = false; stickLeftNeutralPos = Vector2.zero; stickLeftTiltedPos = Vector2.zero; stickLeftDirection = Vector2.zero; stickRightNeutralPos = Vector2.zero; stickRightTiltedPos = Vector2.zero; stickRightDirection = Vector2.zero; stickActiveRadius = STICK_ACTIVE_RADIUS; stickActiveRadiusSqr = stickActiveRadius * stickActiveRadius; stickMaxRadius = STICK_MAX_RADIUS; if (stickMaxRadius < stickActiveRadius) { stickMaxRadius = stickActiveRadius; } stickMaxRadiusSqr = stickMaxRadius * stickMaxRadius; }
public void SetChallengeEditor(ChallengeEditor newChallengeEditor) { challengeEditor = newChallengeEditor; }