public Spelare(string namn, bool lokal) { Lokal = lokal; Namn = namn; inmatningsHanterare = new InmatningsHanterare(); Core.RegisterGlobalManager(inmatningsHanterare); if (Lokal) { rörelseKomponent = new RörelseKomponent(RörelseHastighet, this, inmatningsHanterare); atlasAnimationsKomponent = new AtlasAnimationKomponent(inmatningsHanterare); } else { rörelseKomponent = new RörelseKomponent(RörelseHastighet, this); atlasAnimationsKomponent = new AtlasAnimationKomponent(); } followCamera = new FollowCamera(this); }
public AtlasAnimationKomponent(InmatningsHanterare inmatnings = null) { Inmatnings = inmatnings; }
public RörelseKomponent(float RörHastighet, Spelare spelare, InmatningsHanterare InHatterare = null) { RörelseHastighet = RörHastighet; Inmatnings = InHatterare; Spelare = spelare; }