예제 #1
0
    // Use this for initialization
    void Start()
    {
        ps = GameObject.FindGameObjectWithTag("Player").GetComponent <playerstatus> ();
        pa = GameObject.FindGameObjectWithTag("Player").GetComponent <playerAttack> ();

        //setInfo ();
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     animation_wolf = GetComponent <Animation> ();
     normal         = body.GetComponent <Renderer> ().material.color;
     target         = GameObject.FindGameObjectWithTag("Player").transform;
     ps             = GameObject.FindGameObjectWithTag("Player").GetComponent <playerstatus> ();
 }
예제 #3
0
    void Start()
    {
        nowParent = transform.parent;
        EquipAndBag_Grid now = nowParent.gameObject.GetComponent <EquipAndBag_Grid> ();

        this.id    = now.id;
        this.count = now.num;
        ps         = GameObject.FindGameObjectWithTag("Player").GetComponent <playerstatus> ();
    }
예제 #4
0
    void Awake()
    {
        _instance = this;

        ps        = this.GetComponent <playerstatus>();
        animation = GetComponent <Animation> ();
        normal    = body.GetComponent <Renderer> ().material.color;
        pa        = this.GetComponent <playerAnimation> ();
        foreach (GameObject go in efxArray)
        {
            efxDict.Add(go.name, go);
        }
    }
예제 #5
0
    private void Awake()
    {
        _instance    = this;
        move         = this.GetComponent <playermove>();
        ps           = this.GetComponent <playerstatus>();
        nomals       = normal.material.color;
        hudtxtFollow = transform.Find("HUDtext").gameObject;

        foreach (GameObject go in efxArray)
        {
            efxdict.Add(go.name, go);
        }
    }
예제 #6
0
파일: wolfbaby.cs 프로젝트: gogoing-a/RPG
    private void Start()
    {
        //hudtextGo= GameObject.Instantiate(hudtextprefab, Vector3.zero, Quaternion.identity) as GameObject;
        //hudtextGo.transform.parent = HUDTextParent._instance.gameObject.transform;
        hudtextGo = NGUITools.AddChild(HUDTextParent._instance.gameObject, hudtextprefab);

        hudtext                 = hudtextGo.GetComponent <HUDText>();
        followtarget            = hudtextGo.GetComponent <UIFollowTarget>();
        followtarget.target     = hudtextFollow.transform;
        followtarget.gameCamera = Camera.main;
        //followtarget.uiCamera = UICamera.current.GetComponent<Camera>();
        //followtarget.uiCamera=transform.parent.FindChild("Camer").GetComponent<Camera>();
        ps = GameObject.FindGameObjectWithTag(tags.player).GetComponent <playerstatus>();
    }
예제 #7
0
    // Use this for initialization
    void Start()
    {
        ps       = GameObject.FindGameObjectWithTag("Player").GetComponent <playerstatus> ();
        num_text = transform.parent.Find("shortcutkey").GetComponent <Text> ();
        num      = int.Parse(num_text.text);
        switch (num)
        {
        case 1:
            ky = KeyCode.Alpha1;
            break;

        case 2:
            ky = KeyCode.Alpha2;
            break;

        case 3:
            ky = KeyCode.Alpha3;
            break;

        case 4:
            ky = KeyCode.Alpha4;
            break;

        case 5:
            ky = KeyCode.Alpha5;
            break;

        case 6:
            ky = KeyCode.Alpha6;
            break;

        case 7:
            ky = KeyCode.Alpha7;
            break;

        case 8:
            ky = KeyCode.Alpha8;
            break;

        case 9:
            ky = KeyCode.Alpha9;
            break;
        }
    }
예제 #8
0
    // Use this for initialization
    void Start()
    {
        instance = this;
        ps       = GameObject.FindGameObjectWithTag("Player").GetComponent <playerstatus> ();
        hero     = ps.hero;
        skillShow();

        /*
         * ps = GameObject.FindGameObjectWithTag ("Player").GetComponent<playerstatus> ();
         * skillui = this.GetComponentsInChildren<SkillUI> ();
         * if (ps.hero == herotype.magician) {
         *
         * }else if(ps.hero == herotype.swordman){
         *      int temp = 5001;
         *      foreach (SkillUI i in skillui) {
         *              i.id = temp++;
         *      }
         * }*/
    }
예제 #9
0
    private void Start()
    {
        ps = GameObject.FindGameObjectWithTag(tags.player).GetComponent <playerstatus>();
        int[] idlist = null;
        switch (ps.heroType)
        {
        case HeroType.Megiclan:
            idlist = magicianSkillIdList;
            break;

        case HeroType.Swordman:
            idlist = swordmanSkillIdList;
            break;
        }
        foreach (int id in idlist)
        {
            GameObject itemGo = NGUITools.AddChild(grid.gameObject, skillitemPrefab);
            grid.AddChild(itemGo.transform);
            itemGo.GetComponent <skillitem>().Setld(id);
        }
    }
예제 #10
0
 void Start()
 {
     ps = GameObject.FindGameObjectWithTag("Player").GetComponent <playerstatus> ();
 }
예제 #11
0
 private void Start()
 {
     ps = GameObject.FindGameObjectWithTag(tags.player).GetComponent <playerstatus>();
     pa = GameObject.FindGameObjectWithTag(tags.player).GetComponent <playerattack>();
 }
예제 #12
0
 void Start()
 {
     status = GameObject.FindGameObjectWithTag("Player").GetComponent <playerstatus>();
     d      = dialog.GetComponent <Dialog>();
 }
예제 #13
0
 void Start()
 {
     targets = GameObject.FindGameObjectWithTag("Player").gameObject;
     ps      = targets.GetComponent <playerstatus> ();
 }
예제 #14
0
 private void Start()
 {
     ps = GameObject.FindGameObjectWithTag(tags.player).GetComponent <playerstatus>();
     UpdateShow();
 }
예제 #15
0
파일: Barnpc.cs 프로젝트: gogoing-a/RPG
 void Start()
 {
     status = GameObject.FindGameObjectWithTag(tags.player).GetComponent <playerstatus>();
     auds   = GetComponent <AudioSource>();
 }
예제 #16
0
 // Use this for initialization
 void Start()
 {
     ps        = GetComponent <playerstatus> ();
     animation = GetComponent <Animation>();
     attack    = GetComponent <playerAttack> ();
 }