コード例 #1
0
 // Use this for initialization
 void Start()
 {
     if (!car)
     {
         car = FindObjectOfType <CND.Car.ArcadeCarController>();
     }
     enabled = car;
 }
コード例 #2
0
        // Use this for initialization
        void Start()
        {
            if (!car)
            {
                car = GetComponent <BaseCarController>();
            }

            enabled = car;
        }
コード例 #3
0
        void Awake()
        {
            if (!car)
            {
                car = GetComponent <BaseCarController>();
            }
            wheels = GetComponentsInChildren <Wheel>();

            carState = car.GetComponent <CarStateManager>();
        }