private void Start() { matchmanager mm = GameObject.Find("MatchManager").GetComponent <matchmanager>(); minVelocityX = mm.getMinVelocityX(); minVelocityY = mm.getMinVelocityY(); }
void Initialize() { //Find the match manager script matchmanager = GameObject.FindGameObjectWithTag("matchmanager").GetComponent <matchmanager>(); inputManager = GameObject.Find("Input Manager").GetComponent <InputManager2>(); }