// Use this for initialization void Start() { GameObject parent = gameObject.transform.parent.gameObject; system = parent.GetComponent <CharaSelectSystem>(); thisSprite = this.gameObject.GetComponent <Image>(); }
// Use this for initialization void Start() { GameObject parent = gameObject.transform.parent.parent.gameObject; system = parent.GetComponent <CharaSelectSystem>(); slider = this.GetComponent <Slider>(); if (this.gameObject.tag == "Player") { Ischara = true; } }