Пример #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();
 }