void Awake() { GetComponent <Button>().onClick.AddListener(Click); AppRootStatic.AddButton(this); if (type == TypeButton.NextInstr || type == TypeButton.PrevInstr) { txt = GetComponentInChildren <Text>(); } Rotation = transform.rotation; }