// Start is called before the first frame update void Start() { if (GetComponent <MapSaverSC>() != null) { _MSSC = GetComponent <MapSaverSC>(); if (_MSSC._Used == true) { _OpenedB = true; GetComponent <SpriteRenderer>().sprite = _Opended; } else { _Ani = GetComponent <Animator>(); _Ani.enabled = true; } } else { _Ani = GetComponent <Animator>(); _Ani.enabled = true; } if (GetComponent <MapSaverSC>() != null) { } else { } _Ani = GetComponent <Animator>(); }
// Start is called before the first frame update void Start() { _SR = GetComponent <SpriteRenderer>(); if (GetComponent <MapSaverSC>() != null) { _MSSC = GetComponent <MapSaverSC>(); } }