protected override void Awake() { position = GetComponent <Position>(); if (position == null) { position = gameObject.AddComponent <Position>(); } base.Awake(); PositionRegistry.RegisterInstance(position); }
protected void Awake() { PositionRegistry.RegisterInstance(this); }