// Use this for initialization void Start() { this.phidgetSetting = GameObject.Find("GamePhidgetSetting").GetComponent<PhidgetSetting>(); this.create = this.transform.parent.GetComponent<Create>(); if (this.phidgetSetting.PhidgetKit.sensors[this.Port].Value > this.ReturnLimitValue) this.isReturn = false; else this.isReturn = true; }
// Use this for initialization void Start() { this.penguinScript = this.GetComponent<PenguinAngleReturn>(); this.phidgetSetting = GameObject.Find("GamePhidgetSetting").GetComponent<PhidgetSetting>(); this.cloneSoundObject = (GameObject)Instantiate(this.SoundObject, this.transform.position, Quaternion.identity); this.gameSoundScript = this.cloneSoundObject.GetComponent<GameSound>(); this.create = this.transform.parent.GetComponent<Create>(); }