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

            base.Awake();

            PositionRegistry.RegisterInstance(position);
        }
Exemple #2
0
 protected void Awake()
 {
     PositionRegistry.RegisterInstance(this);
 }