void Start() { select = GameObject.Find("CharacterSelectionScripts").GetComponent <CharacterSelectionScreen> (); characterPrefab = Resources.Load <GameObject> ("Prefabs/PlayerPrefab"); unavailableCharacterSprites = Resources.LoadAll <Sprite> ("CharacterSelection/UnavailableCharacters"); validatedBorders = Resources.LoadAll <Sprite> ("CharacterSelection/Borders"); basicBorder = Resources.Load <Sprite> ("CharacterSelection/PlayerBord"); leftArrow = guid.transform.GetChild(0).gameObject; rightArrow = guid.transform.GetChild(1).gameObject; }
// Use this for initialization void Awake() { if(singleton == null) { singleton = this; } defaultSprite = Resources.Load<Sprite> ("warrior"); warriorSprite = Resources.Load<Sprite> ("warrior"); wizardSprite = Resources.Load<Sprite> ("wizard"); thiefSprite = Resources.Load<Sprite> ("thief"); }
void Awake() { Instance = this; HideScreen(); }