protected override void OnSelected(PlayerBehaviour player) { player.BindInteraction(KeyCode.O, "打开", new Action(() => { SendMessage("OnPlayerOpen", player); })); }
protected override void OnSelected(PlayerBehaviour player) { _spriteRenderer.color = new Color(0.7f, 0.7f, 0.7f, 1); player.BindInteraction(KeyCode.P, "收集", new Action(() => { SendMessage("OnPlayerPickup", player); })); }