-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRollingMachine.cs
33 lines (29 loc) · 947 Bytes
/
RollingMachine.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using Godot;
using System;
using System.Collections.Generic;
using Bandit.Effects;
namespace Bandit
{
public class RollingMachine
{
private LightController _LightController;
private RollingController _RollingController;
private SoundPlayer _SoundPlayer;
public RollingController RollingController
=> _RollingController;
public LightController LightController
=> _LightController;
public SoundPlayer SoundPlayer
=> _SoundPlayer;
public RollingMachine(SoundPlayer soundPlayer, Material normal, Material blur, Spatial[] pivots, Light[] lights)
{
_LightController = new LightController(lights);
_RollingController = new RollingController(4, blur, normal, pivots);
_SoundPlayer = soundPlayer;
}
public void Start()
{
_RollingController.Start();
}
}
}