Esempio n. 1
0
 public void OnClickInteration(GameObject pGO, InteractionSnapshot pIs)
 {
     if (mSelectedUnit != null)
     {
         stepOverlayUI.gameObject.SetActive(true);
     }
     mCurrentInteractionObj = pGO;
     pGO.GetComponent <BoxCollider>().enabled = false;
     mTargetUIOverlayPos = Input.mousePosition;
     uiOverlay.LoadSnapshot(pIs);
 }
Esempio n. 2
0
 public void LoadSnapshot(InteractionSnapshot pIs)
 {
     open.SetActive(pIs.canOpen);
     kick.SetActive(pIs.canKick);
     flashbang.SetActive(pIs.canFlashbang);
 }