// Use this for initialization void Start() { if (appearance == null) { appearance = (IPlayerAppearance)GetComponent <SyntyPlayerAppearance>() ?? GetComponent <PlayerAppearance>(); } }
private void Awake() { gameManager = FindObjectOfType <GameManager>(); equippedObjects = new List <ItemController>(); appearance = (IPlayerAppearance)GetComponent <SyntyPlayerAppearance>() ?? GetComponent <PlayerAppearance>(); player = GetComponent <PlayerController>(); }