void FixedUpdate() { if (!disableInput) { if (player) { player.GetComponent <Creature>().Act(InputInfo.getInputInfo()); } } if (Input.GetButtonDown("Console")) { manager.sysUIManager.ToggleCheat(); } if (Input.GetButtonDown("Cancel")) { manager.sysUIManager.ToggleTab(); } if (Input.GetButtonDown("Submit")) { if (PressSubmit != null) { PressSubmit(); } manager.dialogManager.OnDialogPress(); } if (Input.GetButtonDown("Jump")) { if (PressJump != null) { PressJump(); } manager.scriptManager.SkipScript(); } if (Input.GetButtonDown("Interact")) { if (player) { // 搜索Interactable var collider = Physics2D.OverlapCircle(player.transform.position, 1f, LayerMask.GetMask("Interactable")); if (collider) { Debug.Log(collider.name); var inter = collider.GetComponent <Interactable>(); if (inter != null) { inter.Interact(player.GetComponent <Creature>()); } else { Debug.Log("No inter"); } } else { Debug.Log("No collider"); } } } }