21 lines
425 B
C#
21 lines
425 B
C#
|
|
using UnityEngine;
|
||
|
|
using XED.Attributes;
|
||
|
|
using XED.Core;
|
||
|
|
|
||
|
|
namespace XED
|
||
|
|
{
|
||
|
|
public class TestTruck : RenderableTwinObject
|
||
|
|
{
|
||
|
|
[PropertyVisible]
|
||
|
|
public int deliveryCount;
|
||
|
|
[PropertyVisible]
|
||
|
|
public float deliverySpeed;
|
||
|
|
|
||
|
|
public override void AfterAwake()
|
||
|
|
{
|
||
|
|
base.AfterAwake();
|
||
|
|
FindFirstObjectByType<DataHub>().Subscribe("truck", this);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|