コード例 #1
0
    void Start()
    {
        acterManager   = GetComponent <ActerManager>();
        raycastManager = GetComponent <RaycastManager>();

        acterManager.SetSpeed = speed;
        coins = 0;
    }
コード例 #2
0
ファイル: Ghost.cs プロジェクト: NikolayKorobov/pman
    // Use this for initialization
    void Start()
    {
        //Утсановка параметров для актера
        acterManager   = GetComponent <ActerManager>();
        raycastManager = GetComponent <RaycastManager>();

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

        StartCoroutine(StateRandom());
    }