12 lines
782 B
C#
12 lines
782 B
C#
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.
|
|
}
|
|
} |