Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        socketEquipment = GetComponent<SocketEquipment>();
        botControl = GetComponent<FSMBotController>();
        //player = GameObject.FindWithTag("Player");
        player = botControl.playerTransform;
        thisBody = GetComponent<Rigidbody>();
        energyControl = GetComponent<EnergyController>();

        flipperCooldownTimers = new float[Enum.GetNames(typeof(SocketLocation)).Length];
        hammerCooldownTimers = new float[Enum.GetNames(typeof(SocketLocation)).Length];
        SawHoldTimers = new float[Enum.GetNames(typeof(SocketLocation)).Length];
    }
Exemplo n.º 2
0
    void Start()
    {
        path = new NavMeshPath();
        //targetRigidbody = target.GetComponent<Rigidbody>();

        botController = this.GetComponent<FSMBotController>();
    }