private RotateTable GetDebugRotateTable() { GameObject rotateTable = new GameObject("RotateTable"); RotateTable rotateTableComponent = rotateTable.AddComponent <RotateTable>(); return(rotateTableComponent); }
protected override void OnInitialize() { base.OnInitialize(); RotateTable rotateTable = GetDebugRotateTable(); Turret turret = GetDebugRoundTurret(); RegisterTurretController(turret.GetController()); rotateTable.GetEquipmentsHolder().AddEquipment(turret, Vector3.zero); GetEquipmentsHolder().AddEquipment(rotateTable, Vector3.zero); }