Example #1
0
    // Use this for initialization
    void Start()
    {
        manager = GameObject.Find("SetSkill");
        script  = manager.GetComponent <SetSkillManagerScript>();

        imageComponent = GetComponent <Image> ();
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        GameObject manager = GameObject.Find("SetSkill");

        script = manager.GetComponent <SetSkillManagerScript>();

        botton = GetComponent <Button>();
    }
Example #3
0
    // Update is called once per frame
    void Update()
    {
        //まねじゃから大正を受け取る
        GameObject            manager = GameObject.Find("SetSkill");
        SetSkillManagerScript script  = manager.GetComponent <SetSkillManagerScript>();
        //大正のオブジェクトの位置
        GameObject obj      = GameObject.Find(script.setSukill);
        Transform  objTrans = obj.GetComponent <Transform>();

        //位置を修正
        //transform.localPosition = objTrans.localPosition;
        transform.position = objTrans.position;
    }