void Start() { pbs = GameObject.FindGameObjectWithTag("PlayButton").GetComponent <PlayButtonScript>(); pbs.onPlayButtonMethods += callTest; resize(); endTest(); }
// Start is called before the first frame update void Start() { pbs = GameObject.FindGameObjectWithTag("PlayButton").GetComponent <PlayButtonScript>(); coloredBackground = gameObject.transform.Find("coloredBackground").gameObject.GetComponent <SpriteRenderer>(); if (GetComponent <coloredObject>().enabled == false) { coloredBackground.enabled = false; } else { if (GetComponent <coloredObject>().myColor == coloredObject.ObjectColor.red) { coloredBackground.color = new Color(0.98f, 0.88f, 0.88f, 1.0f); } else if (GetComponent <coloredObject>().myColor == coloredObject.ObjectColor.green) { coloredBackground.color = new Color(0.89f, 1.0f, 0.9f, 1.0f); } else if (GetComponent <coloredObject>().myColor == coloredObject.ObjectColor.blue) { coloredBackground.color = new Color(0.98f, 0.965f, 0.765f, 1.0f); } } if (coloredBackground.enabled == true) { determinedState = true; } else { determinedState = false; } }
// Start is called before the first frame update void Start() { pbs = GameObject.FindGameObjectWithTag("PlayButton").GetComponent <PlayButtonScript>(); sceneCondition = GameObject.FindGameObjectWithTag("canvas").GetComponent <ConditionScript>(); for (int i = 0; i < 4; i++) { cornerChecks[i] = gameObject.transform.GetChild(i).gameObject; } }
private void Start() { pbs = GameObject.FindGameObjectWithTag("PlayButton").GetComponent <PlayButtonScript>(); //rb.gravityScale = 0; rb.isKinematic = true; //Kenny butchered these line pbs.onPlayButtonMethods += saveOriginalValues; pbs.onPlayButtonMethods += startAndStop; }
// Start is called before the first frame update void Start() { pbs = GameObject.FindGameObjectWithTag("PlayButton").GetComponent <PlayButtonScript>(); pbs.onPlayButtonMethods += toggleVerticalMovement; }
void Awake() { m_instance = this; }
void Start() { canJump = true; pbs = GameObject.FindGameObjectWithTag("PlayButton").GetComponent <PlayButtonScript>(); pbs.onPlayButtonMethods += startStopRacoonUpdate; // add to the delegate thingy }
private void Awake() { pbs = GameObject.FindGameObjectWithTag("PlayButton").GetComponent <PlayButtonScript>(); }
// Start is called before the first frame update void Start() { rb = GetComponent <Rigidbody2D>(); pbs = GameObject.FindGameObjectWithTag("PlayButton").GetComponent <PlayButtonScript>(); pbs.onPlayButtonMethods += toggleHorizontalMovement; }