Пример #1
0
        private void Start()
        {
            Sound_Manager.Init();
            cameraFollow.Setup(GetCameraPosition, () => 60f, true, true);

            Vector3 pathfindingLowerLeft  = transform.Find("PathfindingLowerLeft").position;
            Vector3 pathfindingUpperRight = transform.Find("PathfindingUpperRight").position;

            gridPathfinding = new GridPathfinding(pathfindingLowerLeft, pathfindingUpperRight, 5f);
            //gridPathfinding.RaycastWalkable(1 << GameAssets.i.wallLayer);
            //gridPathfinding.PrintMap(pfPathfindingWalkable, pfPathfindingUnWalkable);

            //Enemy enemy = Enemy.Create(player.GetPosition() + new Vector3(+60, 0));
            //enemy.EnemyMain.EnemyTargeting.SetGetTarget(() => player);

            uiWeapon.SetWeapon(player.GetWeapon());
            player.OnWeaponChanged += Player_OnWeaponChanged;

            //FunctionTimer.Create(() => doorAnims.OpenDoor(), 3f);
        }
Пример #2
0
 public static void Init()
 {
     Sound_Manager.Init((Sound_Manager.AudioType audioType) => .2f);
 }