Пример #1
0
    // Update is called once per frame
    void Update()
    {
        TargetHandler.FormationMode getFormation = targetHandler.GetFormationMode();


        if (getFormation != lastFormation)
        {
            lastFormation = getFormation;
            ChangeFormation(getFormation);
        }
    }
Пример #2
0
    void ChangeFormation(TargetHandler.FormationMode form)
    {
        switch (form)
        {
        case TargetHandler.FormationMode.LINE:
            sprAnim.Play("player/queue", 0);
            break;

        case TargetHandler.FormationMode.FOLLOW_CURSOR:
            sprAnim.Play("player/walk", 0);
            break;
        }
    }