示例#1
0
    private void Start()
    {
        matchmanager mm = GameObject.Find("MatchManager").GetComponent <matchmanager>();

        minVelocityX = mm.getMinVelocityX();
        minVelocityY = mm.getMinVelocityY();
    }
示例#2
0
 void Initialize()
 {
     //Find the match manager script
     matchmanager = GameObject.FindGameObjectWithTag("matchmanager").GetComponent <matchmanager>();
     inputManager = GameObject.Find("Input Manager").GetComponent <InputManager2>();
 }