Exemplo n.º 1
0
    void Start()
    {
        acterManager   = GetComponent <ActerManager>();
        raycastManager = GetComponent <RaycastManager>();

        acterManager.SetSpeed = speed;
        coins = 0;
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        //Утсановка параметров для актера
        acterManager   = GetComponent <ActerManager>();
        raycastManager = GetComponent <RaycastManager>();

        acterManager.SetSpeed = speed;
        state = StateList.inactivity;

        StartCoroutine(StateRandom());
    }