示例#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;
        }
    }