示例#1
0
    void Start()
    {
        performance = FindObjectOfType <DollDancePerformance>();

        // Find sequence object and begin the performance
        performance.StartSequence(GetComponent <DollDanceSequence>());
    }
    void Start()
    {
        performance = GetComponent <DollDancePerformance>();

        inputMap = new Dictionary <KeyCode, DollDanceSequence.Move>()
        {
            { KeyCode.UpArrow, DollDanceSequence.Move.Up },
            { KeyCode.DownArrow, DollDanceSequence.Move.Down },
            { KeyCode.LeftArrow, DollDanceSequence.Move.Left },
            { KeyCode.RightArrow, DollDanceSequence.Move.Right },
        };
    }