Beispiel #1
0
    public void Init(TileInteraction originTile, cCards characterType)
    {
        MoveComponent.Init(originTile.GridTile.Location.X, originTile.GridTile.Location.Y);

        switch (characterType)
        {
        case cCards.Beetle:
            gameObject.AddComponent <BeetleBehaviour>();
            break;

        case cCards.RedBeetle:
            gameObject.AddComponent <RedBeetleBehaviour>();
            break;
        }
    }
Beispiel #2
0
    public static void SetInMenu(cCards selected)
    {
        var  cam       = Camera.main.GetComponent <CameraDrag>();
        bool isChecked = selected != cCards.None;

        cam.Direction = isChecked;
        if (isChecked)
        {
            GameSuperviser.Instance.SM_General.MenuItemSelected();
        }
        else
        {
            GameSuperviser.Instance.SM_General.MenuSelectionFinishded();
        }

        CurrentCharacterTag = selected;
    }