This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
using UnityEngine.AI; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.SceneManagement; | |
using UnityEngine.AI; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.SceneManagement; | |
using UnityEngine.AI; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Scrollbar scrollbar; | |
void Start() | |
{ | |
scrollbar.onValueChanged.AddListener(onValueChanged); | |
} | |
void onValueChanged(float value) | |
{ | |
Debug.Log("New Value is " + value)! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[RequireComponent(typeof(Rigidbody), typeof(CapsuleCollider))] | |
public abstract partial class FPControllerBase : MonoBehaviour | |
{ | |
public const string MenuPath = "UFPC/"; | |
FPController This { get { return this as FPController; } } | |
[SerializeField] | |
protected ControlConstraint control; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ARFC; | |
public class FPControllerAnimationSpeed : MonoBehaviour | |
{ | |
public FPController controller; | |
void Update() | |
{ | |
var value = controller.Movement.Speed.Magnitude / controller.Movement.Speed.MaxValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//override the implementation's base type | |
public partial class DataTypes | |
{ | |
new public class ImplementationBase : NetworkBehaviour | |
{ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BaseDataTypes | |
{ | |
//declare an empty class that derived from the class we want to derive the implementation from | |
public class ImplementationBase : MonoBehaviour | |
{ | |
} | |
} | |
public partial class DataTypes : BaseDataTypes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//implementation override | |
public partial class Implementation | |
{ | |
[SerializeField] | |
[TextArea] | |
string tip = "Fields Can Be Added & Will Apear In The MonoBehaviour"; | |
protected override void Method() | |
{ | |
Debug.Log("Override Method"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//abstract class the acts as the functionality implementation | |
public abstract class BaseImplementation : TypesData.ImplementationBase | |
{ | |
void Start() | |
{ | |
Method(); | |
} | |
protected virtual void Method() | |
{ |
NewerOlder