Пример #1
0
    // Use this for initialization
    void Start()
    {
        GameObject parent = gameObject.transform.parent.gameObject;

        system     = parent.GetComponent <CharaSelectSystem>();
        thisSprite = this.gameObject.GetComponent <Image>();
    }
Пример #2
0
    // 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;
        }
    }