Removed old PlayerSelector scripts
This commit is contained in:
parent
3e60ee5d54
commit
d5f4e23e94
@ -1,9 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6b230774f3cce134b96a54b6c30e0dd3
|
||||
folderAsset: yes
|
||||
timeCreated: 1571152233
|
||||
licenseType: Free
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,41 +0,0 @@
|
||||
/*
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Passer {
|
||||
using Pawn;
|
||||
|
||||
[CustomEditor(typeof(PlayerSelector))]
|
||||
public class PlayerSelector_Editor : Editor {
|
||||
|
||||
// Needs to be converted to [InitializeOnLoad] of zoiets
|
||||
private void OnEnable() {
|
||||
PlayerSelector playerSelector = (PlayerSelector)target;
|
||||
PawnControl pawnControl = playerSelector.GetComponentInChildren<PawnControl>();
|
||||
if (pawnControl != null)
|
||||
return;
|
||||
|
||||
GameObject pawnPrefab;
|
||||
if (playerSelector.playerType == PlayerSelector.PlayerType.Humanoid) {
|
||||
pawnPrefab = AssetDatabase.LoadAssetAtPath<GameObject>("Assets/Humanoid/Prefabs/Humanoid.prefab");
|
||||
if (pawnPrefab == null) {
|
||||
Debug.LogError("Humanoid prefab is not found in Assets/Humanoid/Prefabs");
|
||||
return;
|
||||
}
|
||||
} else
|
||||
{
|
||||
pawnPrefab = AssetDatabase.LoadAssetAtPath<GameObject>("Assets/PawnControl/Prefabs/Pawn.prefab");
|
||||
if (pawnPrefab == null) {
|
||||
Debug.LogError("Pawn prefab is not found in Assets/PawnControl/Prefabs");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
GameObject pawn = Instantiate(pawnPrefab);
|
||||
pawn.transform.SetParent(playerSelector.transform);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
@ -1,12 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a04e2abb673740e4091ff562d6278e30
|
||||
timeCreated: 1571152249
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,20 +0,0 @@
|
||||
/*
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Passer {
|
||||
|
||||
public class PlayerSelector : MonoBehaviour {
|
||||
#if pHUMANOID
|
||||
public enum PlayerType {
|
||||
Pawn,
|
||||
Humanoid
|
||||
}
|
||||
public PlayerType playerType;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
@ -1,12 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2fd30796adc441b4e9c9fcbbaf719b13
|
||||
timeCreated: 1571152224
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
x
Reference in New Issue
Block a user