Initial commit
This commit is contained in:
12
Assets/Scripts/PowerPellet.cs
Normal file
12
Assets/Scripts/PowerPellet.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace Marro.PacManUdon
|
||||
{
|
||||
using UdonSharp;
|
||||
|
||||
public class PowerPellet : UdonSharpBehaviour
|
||||
{
|
||||
// Oh how I wish I could just have this method extend pellet and do things the normal way...
|
||||
// But alas, with 'typeof', 'is' and overriding base fields all broken/not available I don't see a good way of differentiating between a type or its derivatives...
|
||||
// The only reason I even want to use this class is so I can do GetComponentsInChildren<PowerPellet> instead of gathering all Pellets and then sorting through them.
|
||||
// But since power pellets are the only pellets with animators, I'll probably just use GetComponentsInChildren<Animator> instead without further checking, since the animator is what I need to manipulate anyway.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user