public void AssignMerc(Mercenary newMerc,HandManager newHandManager) { base.AssignCharacter(newMerc); //handManager.EnableAttachedHandDisplayer(this); portrait.color = newMerc.GetColor(); classText.text = newMerc.GetClass(); assignedMerc = newMerc; handManager = newHandManager; }
public void Validate(HandManager handManager) { if (this.handManager == null) { Initialize (handManager); } }
// public void DiscardCard(Ability ability){ // Debug.Log("Display DiscardCard ability called"); // } public virtual void Select(ActionGroup actionGroup) { HandManager.UnmarkTemplateAsUnselected(selectedActionGroup); selectedActionGroup = actionGroup; CallOnDisplayValuesModified(); }
public static Hand GetHand(GameObject parent, HandType type, HandData handData, HandManager manager, device_type_t deviceType) { Hand hand; switch (type) { case HandType.Normal: hand = parent.AddComponent <RegularHand>(); break; case HandType.Physics: hand = parent.AddComponent <PhysicsHand>(); break; default: hand = parent.AddComponent <RegularHand>(); break; } hand.HandType = type; hand.DeviceType = deviceType; hand.HandData = handData; hand.HandManager = manager; return(hand); }
private void Awake() { instance = this; }
protected override void UpdateHandUI(List <Card> CardsInHand) { HandManager.UpdateCardPositions(CardsInHand); }
// Use this for initialization void Start() { handManager = HandManager.instance; handManager.onItemChangedCallback += UpdateUI; }
public static Hand GetHand(GameObject parent, HandType type, HandData handData, HandManager manager, device_type_t deviceType) { // Disable object so settings can be set before Awake() is called parent.SetActive(false); Hand hand; switch (type) { case HandType.Normal: hand = parent.AddComponent <RegularHand>(); break; default: hand = parent.AddComponent <RegularHand>(); break; } hand.HandType = type; hand.DeviceType = deviceType; hand.HandData = handData; hand.HandManager = manager; parent.SetActive(true); return(hand); }
protected override bool OnItemPlacedInToolbelt(GameObject obj, PlayerToolbeltSlot slot, HandManager hand) { /* Is this our journal? */ if (currentJournal == null || currentJournal.gameObject != obj) { return(false); } /* Force close the journal */ currentJournal.CloseJournal(); /* We consumed this event */ return(true); }
void Awake() { parentObject = transform.parent; handManager = FindObjectOfType <HandManager>(); }
public void Awake() { //γγεεΎ this.handManager = GameObject.Find("EditorManager").GetComponent <HandManager>(); }
// Use this for initialization void Awake() { _handManager = FindObjectOfType <HandManager>(); _targetLineManager = FindObjectOfType <TargetLineManager>(); }
public void EnableHandDisplayer(HandManager manager) { handManager = manager; }
public HandManagerWrapper(HandManager handManager) { Initialize (handManager); }
void Awake() { _instance = this; }
private void Initialize(HandManager handManager) { this.handManager = handManager; getCardViewByIdMethodInfo = ReflectionsManager.GetMethod (handManager, "GetCardViewById"); activeCardID = -1L; nextCardReserved = false; }
private void Initialize(BattleMode battleMode) { this.battleMode = battleMode; this.handManager = GetHandManager (); cardClickedMethodInfo = ReflectionsManager.GetMethod (battleMode, "cardClicked"); toggleUnitStatsMethodInfo = ReflectionsManager.GetMethod (battleMode, "toggleUnitStats"); deselectAllTilesMethodInfo = ReflectionsManager.GetMethod (battleMode, "deselectAllTiles"); gameMenu = (GUIBattleModeMenu)ReflectionsManager.GetValue (battleMode, "menu"); controlBoard = false; tileRow = 2; tileColumn = 1; }