示例#1
0
    protected void Start()
    {
        movementInput = Vector3.zero;

        onKeyDown.AddListener((key) =>
        {
            switch (key)
            {
            case KeyCode.Space:
                generator.AddCircle(character.transform.position);
                break;

            case KeyCode.E:
                generator.AddPlane(Vector3.back);
                break;

            case KeyCode.KeypadEnter:
            case KeyCode.Return:
                pointCloud.Next(10f);
                break;
            }
        });
    }