예제 #1
0
    void Start()
    {
        Debug.Log ("start");
        moveSpeed = 0.1f;
        pos = transform.localPosition;
        stageControl = mainCamera.GetComponent<StageControl> ();

        //ステージクリアまで代入
        pHp   = PlayerStats.hitpoint * 5;
        pAtk  = PlayerStats.attack;
        pDef  = PlayerStats.deffence;
        pAgl  = PlayerStats.agility;
        pHeal = PlayerStats.heal;

        pHpSlider = GameObject.Find ("PlayerHPGauge").GetComponent<Slider> ();

        pHpSlider.maxValue = pHp;

        //ダメージ
        var obj = GameObject.Find ("EDamageTextGen");
        gen = obj.GetComponent<EDamageTextGen>();

        damageCalc = obj.GetComponent<DamageCalc>();

        //自然回復
        StartCoroutine ("PlayerHeal", pHeal);
    }
예제 #2
0
 void Start()
 {
     this.main_camera = GameObject.FindGameObjectWithTag("MainCamera"); //カメラ
     stageControl = main_camera.GetComponent<StageControl> ();
 }
예제 #3
0
 internal BlockingProcessorStep(StageControl control, Configuration configuration, int maxProcessors, System.Threading.CountdownEvent latch) : base(control, "test", configuration, maxProcessors)
 {
     this.Latch = latch;
 }
예제 #4
0
 internal MyProcessorStep(StageControl control, int maxProcessors) : base(control, "test", Configuration.DEFAULT, maxProcessors)
 {
 }
예제 #5
0
 public DeadEndStep(StageControl control) : base(control, "END", Configuration.DEFAULT, 1)
 {
 }
예제 #6
0
 internal ReceiveOrderAssertingStep(StageControl control, string name, Configuration config, long processingTime, bool endOfLine) : base(control, name, config, 1)
 {
     this.ProcessingTime = processingTime;
     this.EndOfLine      = endOfLine;
 }
예제 #7
0
 internal VerifierStep(StageControl control, Configuration config, AtomicInteger processCounter) : base(control, "Verifier", config, 1)
 {
     this.ProcessCounter = processCounter;
 }
예제 #8
0
    public void setStage (StageControl stage) {
        if(currenStage != stage) {
            backState = currenStage;
        }
        if(currenStage != null) {
            currenStage.DisAppear ();
        }

        currenStage = stage;
        stage.Appear ();
    }
예제 #9
0
 // Use this for initialization
 void Start () {
     Application.targetFrameRate = 80;
     new ListernerServer (this);
     currenStage = login;
     login.gameObject.SetActive (true);
     main.gameObject.SetActive (false);
     room.gameObject.SetActive (false);
     // NetworkUtil.GI ().connect (//SendData.onGetPhoneCSKH ());
 }
예제 #10
0
 protected internal BatchProcessor(StageControl control, int processors) : base(control, "PROCESSOR", Config(processors))
 {
 }
예제 #11
0
 public ProducerStep(StageControl control, Configuration config) : base(control, ">", config)
 {
     this.BatchSize = config.BatchSize();
 }