コード例 #1
0
    // Start is called before the first frame update
    void Start()
    {
        fireButton = GetComponent <VehicleAbilityBehavior>();

        _carHolder = GetComponent <AIBehaviour>();

        if (_carHolder.GetComponent <VoidWasp_Attack>() == true)
        {
            _attackHolder = _carHolder.GetComponent <VoidWasp_Attack>();
            isVoidWasp    = true;
        }
    }
コード例 #2
0
    private void Start()
    {
        velHolder = handler.GetComponent <Rigidbody>();

        behaviour = GetComponent <AIBehaviour>();
    }
コード例 #3
0
 public void updateAI(AIBehaviour i)
 {
     i.SwapSpline(orderedSplines[i.GetComponent <RaycastCar>().activeSpline].GetComponent <SplinePlus>(), arenaEntrance);
 }