示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        tankHealth.SetUp(transform);   // call the set up function of our tank health script
        tankMovement.SetUp(transform); // calls the set up function of our tank health script
        tankMainGun.SetUp();           // calls the set up function of our tank main gun script

        if (enableTankMovement)
        {
            EnableInput();
        }
    }