Esempio n. 1
0
    public override void    initialize()
    {
        this.hakusai_set = new HakusaiSet();
        this.hakusai_set.attach();

        this.tarai_fune = GameObject.Find("tarai_boat").gameObject;

        GameObject map_go = GameObject.Find(MapCreator.get().getCurrentMapName()).gameObject;

        this.data_holder = map_go.transform.FindChild("LeaveEventData").gameObject;

        this.tarai_enter_spline = this.data_holder.gameObject.findDescendant("tarai_enter_spline").GetComponent <SimpleSplineObject>();
        this.tarai_leave_spline = this.data_holder.gameObject.findDescendant("tarai_leave_spline").GetComponent <SimpleSplineObject>();
        this.tarai_tracer.attach(this.tarai_leave_spline.curve);

        this.hakusai_spline = this.data_holder.gameObject.findDescendant("hakusai_spline").GetComponent <SimpleSplineObject>();
        this.hakusai_tracer.attach(this.hakusai_spline.curve);

        this.step.set_next(STEP.IDLE);
        this.execute();
    }
Esempio n. 2
0
	public override void	initialize()
	{
		this.hakusai_set = new HakusaiSet();
		this.hakusai_set.attach();

		this.tarai_fune = GameObject.Find("tarai_boat").gameObject;

		GameObject		map_go = GameObject.Find(MapCreator.get().getCurrentMapName()).gameObject;

		this.data_holder = map_go.transform.FindChild("LeaveEventData").gameObject;

		this.tarai_enter_spline = this.data_holder.gameObject.findDescendant("tarai_enter_spline").GetComponent<SimpleSplineObject>();
		this.tarai_leave_spline = this.data_holder.gameObject.findDescendant("tarai_leave_spline").GetComponent<SimpleSplineObject>();
		this.tarai_tracer.attach(this.tarai_leave_spline.curve);
		
		this.hakusai_spline = this.data_holder.gameObject.findDescendant("hakusai_spline").GetComponent<SimpleSplineObject>();
		this.hakusai_tracer.attach(this.hakusai_spline.curve);

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