private void Awake()
        {
            if (_instance != null)
            {
                Destroy(gameObject);
                return;
            }

            _instance = this;
        }
Example #2
0
 private void Start()
 {
     ChangeSkinColor(PlayerUnlocks.GetInitialColor());
     ChangeSize(PlayerUnlocks.GetInitialSize());
     ChangeShape(PlayerUnlocks.GetInitialShape());
 }