private void Awake() { canvas = GetComponent <CanvasGroup>(); this.originalPosition = this.transform.position; active = true; droppedToLocation = false; game = GameObject.FindObjectOfType <EasyGameManager>(); }
private void Start() { canvas = GetComponent <CanvasGroup>(); game = GameObject.FindObjectOfType <EasyGameManager>(); drag = GetComponent <EasyDrag>(); }
void Awake() { game = GameObject.FindObjectOfType <EasyGameManager>(); }