示例#1
0
        public override void Enter()
        {
            arrow = Create3DArrow();
            arrow.transform.localPosition = new Vector3(0.18f, 0.08f, 0.3f);
            arrow.AddComponent(typeof(PointUpOrDown));

            context.gameMaster.LockOxygenLow();
            buttonArrow = CreateBlinking2DArrow();
            Set2DArrowPos(new Vector2(155, 262));
        }
示例#2
0
 public void setBoostButtonControl(HighlightableControlButton arg)
 {
     buttonBoost = arg;
 }
示例#3
0
 public void setFireButtonControl(HighlightableControlButton arg)
 {
     buttonFire = arg;
 }
示例#4
0
 //     //     //     //     //
 // Property setters
 public void setAimButtonControl(HighlightableControlButton arg)
 {
     buttonAim = arg;
 }
示例#5
0
 public override void Enter()
 {
     d = new OnPressedDelegate(this.OnPressedAim);
     context.buttonAim.AddPressedDelegate(d);
     context.buttonAim.StartBlinking();
     arrow = CreateBlinking2DArrow();
 }
示例#6
0
 protected HighlightableControlButton CreateBlinking2DArrow()
 {
     Texture2D emptyTexture = CreateEmptyTexture();
     HighlightableControlButton arrow =  new HighlightableControlButton(context, context.arrowGUI, null, emptyTexture, context.arrow2D);
     arrow.StartBlinking();
     return arrow;
 }
 void setBoostButtonControl(HighlightableControlButton arg)
 {
     arg.AddPressedDelegate(new OnPressedDelegate(OnBoost));
 }
示例#8
0
 void Awake()
 {
     useGUILayout = false;
     IsFreeVersion = PlayerPrefs.HasKey("IsFreeVersion") ? PlayerPrefs.GetInt("IsFreeVersion") > 0 ? true : false : false;
     fader = new Fader(fade);
     buttonFire = new HighlightableControlButton(this, fireButtonGUI, fireButtonOn, fireButtonOff, fireButtonHighlight);
     buttonBoost = new HighlightableControlButton(this, boostButtonGUI, boostButtonOn, boostButtonOff, boostButtonHighlight);
     buttonAim =  new HighlightableControlButton(this, aimButtonGUI, aimButtonOn, aimButtonOff, aimButtonHighlight);
     fishesInfo = new FishesInfo();
     airTankLevel = new ValueHolder(airTank.Length - 1);
     airTankLevel.Subscribe(OnAirTankLevelChanged);
 }