Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     try
     {
         pManager      = FindObjectOfType <PlayerManager>();
         status        = pManager.Status;
         alchemy_ctr   = FindObjectOfType <AlchemyController>();
         alchemyUI_ctr = GameObject.Find("Canvas/Alchemy_UI").GetComponent <AlchemyUIController>();
         BrotherObj    = FindObjectOfType <MoveController>().gameObject;
         move_ctr      = BrotherObj.GetComponent <MoveController>();
         PotObject     = FindObjectOfType <PotController>().gameObject;
         createItemBox = new List <CreateItemStatus.Type>();
         anim_ctr      = BrotherObj.transform.parent.GetComponent <AnimController>();
         lifePoint     = GameObject.FindGameObjectWithTag("LifePoint");
     }
     catch (UnityException e)
     {
         Debug.Log(e + " is NotFound");
     }
     StartHeart();
     setStartSwordList();
     //剣のデバッグ
     //swordList[1] = PlayerStatus.SWORDTYPE.AXE;
     //swordList[2] = PlayerStatus.SWORDTYPE.DARK;
     //swordList[3] = PlayerStatus.SWORDTYPE.VAJURA;
     _itemMax      = false;
     alchemyUIFlag = false;
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     player_ctr    = GameObject.Find("Controller").GetComponent <PlayerController>();
     GeneratedImg  = GameObject.Find("Canvas/Panel/Image").GetComponent <Image>();
     item_ctr      = GameObject.Find("Controller").GetComponent <ItemController>();
     AlphaSprite   = Resources.Load <Sprite>("Textures/UI/AlphaImage");
     alchemyUI_ctr = GameObject.Find("Canvas/Alchemy_UI").GetComponent <AlchemyUIController>();
     ReSetGeneratedImg();
     setCreateItem();
 }
Esempio n. 3
0
 // Use this for initialization
 void Start()
 {
     direc         = Direction.LEFT;
     pManager      = GameObject.Find("PlayerStatus").GetComponent <PlayerManager>();
     PotObject     = FindObjectOfType <PotController>().gameObject;
     rig           = gameObject.transform.parent.GetComponent <Rigidbody2D>();
     player_ctr    = GameObject.Find("Controller").GetComponent <PlayerController>();
     bringctr      = gameObject.transform.parent.GetChild(0).GetComponent <BringCollider>();
     alchemyUI_ctr = GameObject.Find("Canvas/Alchemy_UI").GetComponent <AlchemyUIController>();
     miniMap_ctr   = GameObject.Find("Canvas/MiniMap").GetComponent <MiniMapController>();
     anim_ctr      = gameObject.transform.parent.GetComponent <AnimController>();
     leg_col       = gameObject.transform.parent.GetComponentInChildren <LegCollider>();
     crossAxisDown = gameObject.GetComponent <CrossAxisDown>();
 }