Ejemplo n.º 1
0
	public override void	initialize()
	{
		this.cat = this.player.controll.getCarriedItem<ItemBehaviorCat>();
			
		// 디버그 용.

		if(this.cat == null) {

			this.cat = ItemManager.getInstance().findItem("Cat").behavior as ItemBehaviorCat;

			this.player.controll.item_carrier.beginCarryAnon(this.cat.controll);
		}

		this.step.set_next(STEP.IDLE);
		this.execute();
	}
Ejemplo n.º 2
0
    public override void    initialize()
    {
        this.cat = this.player.controll.getCarriedItem <ItemBehaviorCat>();

        // 디버그 용.

        if (this.cat == null)
        {
            this.cat = ItemManager.getInstance().findItem("Cat").behavior as ItemBehaviorCat;

            this.player.controll.item_carrier.beginCarryAnon(this.cat.controll);
        }

        this.step.set_next(STEP.IDLE);
        this.execute();
    }
Ejemplo n.º 3
0
    public override void    initialize()
    {
        var cat_go = this.house.gameObject.findChildGameObject("Cat");

        if (cat_go != null)
        {
            this.cat = cat_go.GetComponentInChildren <ItemBehaviorCat>();
        }

        // ---------------------------------------------------------------- //
        // 디버그할 때를 위해(원래 필요 없음).
        {
            if (this.cat == null)
            {
                this.cat = ItemManager.getInstance().findItem("Cat").behavior as ItemBehaviorCat;
            }

            // 고양이.
            if (this.cat != null)
            {
                // 툇마루에 앉힙니다.
                this.cat.controll.setVisible(true);
                this.cat.controll.cmdSetCollidable(false);
                this.cat.controll.setParent(this.house.controll.gameObject);
                this.cat.controll.transform.localPosition = new Vector3(0.06996871f, 0.2095842f, -0.4440203f);
                this.cat.controll.transform.localRotation = Quaternion.AngleAxis(0.0f, Vector3.up);
                this.cat.controll.transform.localScale    = Vector3.one * 0.6f;
            }

            this.house.transform.rotation = Quaternion.AngleAxis(315.0f, Vector3.up);
        }
        // 여기까지~ 디버그용.
        // ---------------------------------------------------------------- //

        this.step.set_next(STEP.IDLE);
        this.execute();
    }
Ejemplo n.º 4
0
	public override void	initialize()
	{
		var		cat_go = this.house.gameObject.findChildGameObject("Cat");

		if(cat_go != null) {

			this.cat = cat_go.GetComponentInChildren<ItemBehaviorCat>();
		}

		// ---------------------------------------------------------------- //
		// 디버그할 때를 위해(원래 필요 없음).
		{
			if(this.cat == null) {
		
				this.cat = ItemManager.getInstance().findItem("Cat").behavior as ItemBehaviorCat;
			}

			// 고양이.
			if(this.cat != null) {
	
				// 툇마루에 앉힙니다.
				this.cat.controll.setVisible(true);
				this.cat.controll.cmdSetCollidable(false);
				this.cat.controll.setParent(this.house.controll.gameObject);		
				this.cat.controll.transform.localPosition = new Vector3(0.06996871f, 0.2095842f, -0.4440203f);
				this.cat.controll.transform.localRotation = Quaternion.AngleAxis(0.0f, Vector3.up);
				this.cat.controll.transform.localScale    = Vector3.one*0.6f;
			}

			this.house.transform.rotation = Quaternion.AngleAxis(315.0f, Vector3.up);
		}
		// 여기까지~ 디버그용.
		// ---------------------------------------------------------------- //

		this.step.set_next(STEP.IDLE);
		this.execute();
	}