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; } }
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; }