private void Awake() { StartPosition = RectTransform.localPosition; StartScale = RectTransform.localScale; StartRotation = RectTransform.eulerAngles; material = GetComponent <Image>().material; OnPointerEnterBehaviour.Init(material); OnPointerExitBehaviour.Init(material); OnPointerDownBehaviour.Init(material); }
void Awake() { UIAnimation.Init(); }