void Start() { pt = PaintableTexture.Instance; sb = stickHolder.GetComponent <StickBehavior>(); h2c = h2view.GetComponent <h2viewcontrol>(); stickInitQ = stickHolder.transform.localRotation; cameraInitQ = camera.transform.localRotation; surfaceInitQ = surface.transform.localRotation; Cursor.lockState = CursorLockMode.Locked; Cursor.visible = false; }
void Start() { pt = PaintableTexture.Instance; // Todo: replace below with singletons to avoid need for linking in the editor sb = stickHolder.GetComponent <StickBehavior>(); helpScreen = helpScreenParent.GetComponent <HelpScreen>(); h2c = h2view.GetComponent <h2viewcontrol>(); stickInitQ = stickHolder.transform.localRotation; cameraInitQ = camera.transform.localRotation; surfaceInitQ = surface.transform.localRotation; Cursor.lockState = CursorLockMode.Locked; Cursor.visible = false; }
// Start is called before the first frame update void Start() { //Setting Class StickBehavior = GameObject.Find("Sticks").GetComponent <StickBehavior>(); StoneManager = GameObject.Find("GameManager").GetComponent <StoneManager>(); PlayHistoryManager = GameObject.Find("GameManager").GetComponent <PlayHistoryManager>(); //Setting userFirst bool isUserFirst = GameStat.isUserFirst; //Call Reset System ResetSystem(); //Turn off all lights on count light OutCountResetSystem(); //Turn off turn symbol b. turnSymbolB.SetActive(false); //Pre-Set Scoreboard /* * 0: Result, 1 ~ 9: Each Innings, Max Inning: 9 */ ScoreBoardResetSystem(); if (isUserFirst) // If uesr attack first case (Attack at Top of inning) { defenseCardButton.gameObject.SetActive(false); offenseButton.gameObject.SetActive(false); teamAText.text = "USER"; teamBText.text = "COM"; isUserTurn = true; } else if (!isUserFirst) // If user attack later case (Attack at Bottom of inning) { defenseCardButton.gameObject.SetActive(true); offenseButton.gameObject.SetActive(false); teamAText.text = "COM"; teamBText.text = "USER"; isUserTurn = false; } }