예제 #1
0
    public void OnPointerClick(PointerEventData eventData)
    {
        Muscle.Click();

        var radius    = UnityEngine.Random.Range(2.0f, 4.0f);
        var expCircle = Instantiate(ExpCircle, eventData.position, Quaternion.identity, PlayerAttributes.ExperienceSlider.transform);

        expCircle.transform.localScale = new Vector3(radius, radius, 0);
        expCircle.GetComponent <ExperienceCircleController>().StartMove();
        //TODO: CHANGE COLOR
        //expCircle.GetComponent<Image>().color = PlayerAttributes.ExperienceSlider;
    }