コード例 #1
0
    /// <summary>
    /// Start is called on the frame when a script is enabled just before
    /// any of the Update methods is called the first time.
    /// </summary>
    void Start()
    {
        playerRB = GetComponent <Rigidbody>();

        playerCarController     = GetComponent <PlayerCarController>();
        targetClosestPolice     = GetComponent <TargetClosestPolice>();
        increaseScoreController = GetComponent <PlayerIncreaseScoreController>();

        bustedAmount = 0;
        bustedSet    = false;
    }
コード例 #2
0
 /// <summary>
 /// Start is called on the frame when a script is enabled just before
 /// any of the Update methods is called the first time.
 /// </summary>
 void Start()
 {
     base.Init();
     increaseScoreController = GetComponent <PlayerIncreaseScoreController>();
 }