private void Awake() { startWasPressed = false; StartCoroutine(CountdownToRanking()); arcadeAPIController = GetComponent <ArcadeAPIController>(); print("arcade " + arcadeAPIController); arcadeAPIController.InitGame("QPong"); }
// Start is called before the first frame update void Start() { theBall = GameObject.FindGameObjectWithTag("Ball"); ballControlScript = theBall.GetComponent <BallControl>(); theCircuitGrid = GameObject.FindGameObjectWithTag("CircuitGrid"); circuitGridControlScript = theCircuitGrid.GetComponent <CircuitGridControl>(); theClassicalPaddle = GameObject.FindGameObjectWithTag("ClassicalPaddle"); classicalPaddleControlScript = theClassicalPaddle.GetComponent <ComputerControls>(); arcadeButtonInput = gameObject.GetComponent <ArcadeButtonInput>(); player = GameController.Instance.player; arcadeAPIController = gameObject.GetComponent <ArcadeAPIController>(); RestartGame(); }