Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     internalIndicator = indicator.GetComponent <RectTransform>().GetChild(0).GetComponent <Image>();
     MinPos            = Vector3.one * indicator.GetComponent <RectTransform>().sizeDelta.x;
     MaxPos            = new Vector3(Screen.width - indicator.GetComponent <RectTransform>().sizeDelta.x, Screen.height - indicator.GetComponent <RectTransform>().sizeDelta.y, 0.0f);
     EventScript       = GetComponentInChildren <ObjectEventScript>();
     count             = 0;
 }
Exemplo n.º 2
0
    protected void SolveIssue()
    {
        ObjectEventScript eventScript = GetComponent <ObjectEventScript>();

        eventScript.SolveIssue();
    }