// Use this for initialization void Start() { fOldStrength = fExplosionStrength; ScoreObj = GameObject.FindGameObjectWithTag("SCORESYSTEM"); sys = ScoreObj.GetComponent <Scoresystem> () as Scoresystem; }
// Use this for initialization void Start() { fOldStrength = fExplosionStrength; ScoreObj = GameObject.FindGameObjectWithTag ("SCORESYSTEM"); sys = ScoreObj.GetComponent<Scoresystem> () as Scoresystem; }
// Use this for initialization void Start() { Spinner_ob = transform.GetChild(0).gameObject; force = Spinner_ob.GetComponent <ConstantForce> () as ConstantForce; rig = Spinner_ob.GetComponent <Rigidbody> () as Rigidbody; ScoreObj = GameObject.FindGameObjectWithTag("SCORESYSTEM"); sys = ScoreObj.GetComponent <Scoresystem> () as Scoresystem; }
// Use this for initialization void Start() { Spinner_ob = transform.GetChild (0).gameObject; force = Spinner_ob.GetComponent<ConstantForce> () as ConstantForce; rig = Spinner_ob.GetComponent<Rigidbody> () as Rigidbody; ScoreObj = GameObject.FindGameObjectWithTag ("SCORESYSTEM"); sys = ScoreObj.GetComponent<Scoresystem> () as Scoresystem; }
public Scoresystem sys; // The Scoresystem attached to the ScoreSystem Game Object // Use this for initialization void Start() { // Get the Scoresystem attached to the ScoreSystem Game Object sys = ScoreSystem.GetComponent <Scoresystem> () as Scoresystem; }
// Use this for initialization void Start() { ScoreObj = GameObject.FindGameObjectWithTag("SCORESYSTEM"); sys = ScoreObj.GetComponent <Scoresystem> () as Scoresystem; control = LightObject.GetComponent <LightController> () as LightController; }
// Use this for initialization void Start() { // Get the Scoresystem attached to the ScoreSystem Game Object sys = ScoreSystem.GetComponent<Scoresystem> () as Scoresystem; }
// Use this for initialization void Start() { ScoreObj = GameObject.FindGameObjectWithTag ("SCORESYSTEM"); sys = ScoreObj.GetComponent<Scoresystem> () as Scoresystem; control = LightObject.GetComponent<LightController> () as LightController; }