Exemplo n.º 1
0
    public override void InitStateInfo(ItemStateInfo stateInfo)
    {
        FlashlightStateInfo casted = (FlashlightStateInfo)stateInfo;

        this.StateInfo.IsLightOn = casted.IsLightOn;
        RefreshLight();
    }
Exemplo n.º 2
0
 private void Awake()
 {
     StateInfo = new FlashlightStateInfo()
     {
         IsLightOn = true
     };
 }