Exemplo n.º 1
0
 void Start()
 {
     sRegulator = GameObject.Find ("SpeedRegulator").GetComponent<SpeedRegulator>();
     barFilling = GameObject.Find ("Gauge").GetComponent<Transform>();
     audioController = GameObject.Find ("AudioContainer").GetComponent<AudioController>();
     gas = INITIAL_GAS;
     canFart = true;
 }
 void Start()
 {
     speedRegulator = GameObject.Find ("SpeedRegulator").GetComponent<SpeedRegulator>();
     scoreRegulator = GameObject.Find ("ScoreRegulator").GetComponent<ScoreRegulator>();
     gasRegulator = GameObject.Find ("GasRegulator").GetComponent<GasRegulator>();
     audioController = GameObject.Find ("AudioContainer").GetComponent<AudioController>();
     comboRegulator = GameObject.Find ("ComboRegulator").GetComponent<ComboRegulator> ();
 }
Exemplo n.º 3
0
    void Start()
    {
        // 获取组件
        _rigidbody          = GetComponent <Rigidbody>();
        _speedRegulator     = GetComponent <SpeedRegulator>();
        _directionRegulator = GetComponent <DirectionRegulator>();

        State = new PlayerState.Debug(this);
    }
 void Start()
 {
     // Grab multiplier
     regulator = GameObject.Find ("SpeedRegulator").GetComponent<SpeedRegulator>();
 }
 void Start()
 {
     regulator = GameObject.Find ("SpeedRegulator").GetComponent<SpeedRegulator>();
 }
 // Use this for initialization
 void Start()
 {
     textMesh = GameObject.Find ("DisplacementRegulator").GetComponent<TextMesh> ();
     speedRegulator = GameObject.Find ("SpeedRegulator").GetComponent<SpeedRegulator> ();
 }
 // Use this for initialization
 void Start()
 {
     speedDisplay = this.gameObject.GetComponent<TextMesh>();
     speedScript = this.gameObject.GetComponent<SpeedRegulator>();
 }
 void Start()
 {
     speedRegulator = GameObject.Find ("SpeedRegulator").GetComponent<SpeedRegulator>();
     generalRegulator = GameObject.Find ("GeneralRegulator").GetComponent<GeneralRegulator>();
     //        comboRegulator = GameObject.Find ("ComboRegulator").GetComponent<ComboRegulator> ();
 }