-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class AC_Airplane_Menus : MonoBehaviour | ||
{ | ||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
|
||
} | ||
|
||
// Update is called once per frame | ||
void Update() | ||
{ | ||
|
||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace AirControl | ||
{ | ||
public class AC_Airplane_Controller : AC_BaseRigidbody_Controller | ||
{ | ||
#region variables | ||
public AC_BaseAirplane_Input input; | ||
#endregion | ||
|
||
#region Custom Methods | ||
protected override void HandlePhysics() | ||
{ | ||
|
||
} | ||
#endregion | ||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
namespace AirControl | ||
{ | ||
[RequireComponent(typeof(Rigidbody))] | ||
[RequireComponent(typeof(AudioSource))] | ||
public class AC_BaseRigidbody_Controller : MonoBehaviour | ||
{ | ||
#region Variable | ||
private Rigidbody rb; | ||
private AudioSource aSource; | ||
#endregion | ||
|
||
#region Builtin Methods | ||
// Start is called before the first frame update | ||
void Start() | ||
{ | ||
rb = GetComponent<Rigidbody>(); | ||
aSource = GetComponent<AudioSource>(); | ||
// Dont allow audio to play on start | ||
if(aSource){ | ||
aSource.playOnAwake = false; | ||
} | ||
} | ||
|
||
// Update is called once per frame | ||
void FixedUpdate() | ||
{ | ||
if(rb){ | ||
HandlePhysics(); | ||
} | ||
} | ||
#endregion | ||
|
||
#region Custom Methods | ||
protected virtual void HandlePhysics(){ | ||
|
||
} | ||
#endregion | ||
} | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.