示例#1
0
    private void Awake()
    {
        this.sRigidbody                = this.GetComponent <Rigidbody>();
        this.sPathReceiver             = this.GetComponent <PathReceiver>();
        this.sKeyStrokeInputController = this.GetComponent <KeyStrokeInputController>();
        this.sSpeedController          = new SpeedController(this._MaximumSpeed);
#if UNITY_ANDROID
        _RotationSpeed = 80f;
#endif
    }
 private void Awake()
 {
     crachCall = crachEffect;
     agoPos    = transform.position;
     for (int i = 0; i < parts.Length; i++)
     {
         parts[i].init();
         partDic.Add(parts[i].location, parts[i]);
     }
     rightCount   = 3;
     leftCount    = 3;
     pathReceiver = GetComponentInParent <PathReceiver>();
 }