Exemple #1
0
        public void UpdatePlacementPosition(CCPlacement newPlacementPos)
        {
            if (Toolbox.GameManager != null && !Toolbox.GameManager.accessibilityCheck)
            {
                return;
            }

            placementPos = newPlacementPos;
            // top = transform.GetChild(0).gameObject
            //Debug.Log("CCPos:" + newPlacementPos);
            transform.GetChild(0).gameObject.SetActive(placementPos == CCPlacement.Top);
            // bottom = transform.GetChild(1).gameObject
            transform.GetChild(1).gameObject.SetActive(placementPos == CCPlacement.Bottom);
        }
Exemple #2
0
 public void CreateCaption(CCPriority priority, int seqStringIndex, float displayTime, CCPlacement placement)
 {
     if (seqStringIndex < seqStrings.Length)
     {
         CreateCaption(seqStrings[seqStringIndex], displayTime, priority, placement);
     }
     else
     {
         Debug.LogError("Index OutOfBound Exception: " + seqStringIndex);
     }
 }
Exemple #3
0
 public void CreateCaption(string displayText, float displayTime, CCPriority priority = CCPriority.Medium, CCPlacement placement = CCPlacement.Bottom)
 {
     UpdatePlacementPosition(placement);
     CreateCaption(priority, displayText, displayTime);
 }