public void TargetTellClientToFindNewPathForUnit(NetworkConnection target, Vector3 finalTarget) { //if (isLocalPlayer) //{ UnitsManager.MakeActiveUnitMove_CLIENT(finalTarget); // } }
////////////////////////////////////////////// ////// Dont think this should be here public static void SetCubeActive_CLIENT(bool onOff, Vector3 location) { if (_activeCube) { _activeCube.GetComponent <CubeLocationScript>().CubeActive(false); _activeCube = null; } if (onOff) { _activeCube = GetLocationScript_CLIENT(location); _activeCube.GetComponent <CubeLocationScript>().CubeActive(true); UnitsManager.MakeActiveUnitMove_CLIENT(location); } }