refactor: moved a lot of player related scripts to the Reset.Units namespace
This commit is contained in:
@@ -2,10 +2,11 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using Reset.Core.Tools;
|
||||
using Reset.Units;
|
||||
using Unity.Netcode;
|
||||
using UnityEngine;
|
||||
using Random = UnityEngine.Random;
|
||||
|
||||
public class UnitCombat : MonoBehaviour{
|
||||
public class UnitCombat : UnitComponent {
|
||||
public List<Collider> draggedUnits = new List<Collider>();
|
||||
|
||||
private UnitMovementHandler movement;
|
||||
@@ -69,4 +70,4 @@ public class UnitCombat : MonoBehaviour{
|
||||
draggedUnitMovement.SetNewSpeed(speedDelta, 1f, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
13
Assets/Scripts/Units/Combat/UnitComponent.cs
Normal file
13
Assets/Scripts/Units/Combat/UnitComponent.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Unity.Netcode;
|
||||
|
||||
public class UnitComponent : NetworkBehaviour{
|
||||
private bool enabledAsHost = true;
|
||||
|
||||
void DisableComponents(){
|
||||
enabledAsHost = false;
|
||||
}
|
||||
|
||||
void Update(){
|
||||
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Units/Combat/UnitComponent.cs.meta
Normal file
3
Assets/Scripts/Units/Combat/UnitComponent.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6fcd80e1ad994ff4976dcaf3a6564c87
|
||||
timeCreated: 1759768163
|
||||
Reference in New Issue
Block a user