コード例 #1
0
 public void OnWorkTypeChange(WorkType wType)
 {
     if (wType != null)
     {
         activeText = wType.Description;
         activeColor = wType.getColor();
         gameObject.SetActive(true);
         activeColor.a = 1.7f;
     }
 }
コード例 #2
0
ファイル: SurveyWork.cs プロジェクト: pbostrm/ceres
 public override void Construct(Vector3 point, int currentPointValue,WorkType wType)
 {
     base.Construct(point, currentPointValue, wType);
     if (ValidateWorkForQueue(currentPointValue))
     {
         if (GameManager.actionManager.ApplyWork(this))
         {
             Color col = wType.getColor();
             col.a = 0.4f;
             cube = new GLCube(point, Vector3.one, col, this);
         }
     }
     else
     {
         GameManager.actionManager.CancelPendingWork();
     }
 }
コード例 #3
0
ファイル: ExcavatingWork.cs プロジェクト: pbostrm/ceres
 public void simpleConstruct(Vector3 point, WorkType wType)
 {
     cubePoint = point;
     workType = wType;
     if (GameManager.actionManager.ApplyWork(this))
     {
         Color col = wType.getColor();
         col.a = 0.4f;
         cube = new GLCube(point, Vector3.one, col, this);
     }
 }
コード例 #4
0
ファイル: BuildSurveyWork.cs プロジェクト: pbostrm/ceres
 public void simpleConstruct(Vector3 point, WorkType wType,SurveyProject project)
 {
     surveyProject = project;
     cubePoint = point;
     //surveyProject.AddProbeToQueue(this);
     workType = wType;
     if (GameManager.actionManager.ApplyWork(this))
     {
         Color col = wType.getColor();
         col.a = 0.4f;
         cube = new GLCube(point, Vector3.one, col, this);
     }
 }