コード例 #1
0
 // Use this for initialization
 void Start()
 {
     _player             = GameObject.FindGameObjectWithTag("Player");
     _chargeSpeed        = 5f;
     _playerCharge       = _player.GetComponent <PlayerCharge>();
     _playerStateMachine = _player.GetComponent <PlayerStateMachine>();
 }
コード例 #2
0
ファイル: PoolOfWater.cs プロジェクト: mkmarkop/bulbfact
    void Start()
    {
        _playerStateMachine = player.GetComponent <PlayerStateMachine> ();
        _initialWalkSpeed   = _playerStateMachine.playerWalkSpeed;
        _playerCharge       = player.GetComponent <PlayerCharge> ();

        _playerStunned = false;
    }
コード例 #3
0
 // Start is called before the first frame update
 void Start()
 {
     // コンポーネントの取得
     playerCharge = GetComponent <PlayerCharge>();
     playerAerial = GetComponent <PlayerAerial>();
     move         = GetComponent <PlayerMove>();
     player       = GetComponent <Player>();
     ReadTextParameter();
 }
コード例 #4
0
ファイル: AerialState.cs プロジェクト: Nagisa-Ogawa/Runbrella
 /// <summary>
 /// 初期化処理
 /// </summary>
 void Start()
 {
     // コンポーネントを取得
     playerAerial = GetComponent <PlayerAerial>();
     playerSlide  = GetComponent <PlayerSlide>();
     playerAttack = GetComponent <PlayerAttack>();
     playerCharge = GetComponent <PlayerCharge>();
     character    = GetComponent <Player>();
 }
コード例 #5
0
        public override int SerializedSize()
        {
            int size = memoizedSerializedSize;

            if (size != -1)
            {
                return(size);
            }
            size = 0;
            if (HasOperate)
            {
                size += pb::CodedOutputStream.ComputeInt32Size(1, Operate);
            }
            {
                foreach (ActivityRankInfo element in chargeRanksList)
                {
                    int subsize = element.SerializedSize();
                    size += pb::CodedOutputStream.ComputeTagSize((int)2) + pb::CodedOutputStream.ComputeRawVarint32Size((uint)subsize) + subsize;
                }
            }
            {
                foreach (ActivityRankInfo element in spendRanksList)
                {
                    int subsize = element.SerializedSize();
                    size += pb::CodedOutputStream.ComputeTagSize((int)3) + pb::CodedOutputStream.ComputeRawVarint32Size((uint)subsize) + subsize;
                }
            }
            {
                int subsize = PlayerCharge.SerializedSize();
                size += pb::CodedOutputStream.ComputeTagSize((int)4) + pb::CodedOutputStream.ComputeRawVarint32Size((uint)subsize) + subsize;
            }
            {
                int subsize = PlayerSpend.SerializedSize();
                size += pb::CodedOutputStream.ComputeTagSize((int)5) + pb::CodedOutputStream.ComputeRawVarint32Size((uint)subsize) + subsize;
            }
            {
                foreach (ActivityRankReward element in chargeRewardsList)
                {
                    int subsize = element.SerializedSize();
                    size += pb::CodedOutputStream.ComputeTagSize((int)6) + pb::CodedOutputStream.ComputeRawVarint32Size((uint)subsize) + subsize;
                }
            }
            {
                foreach (ActivityRankReward element in spendRewardsList)
                {
                    int subsize = element.SerializedSize();
                    size += pb::CodedOutputStream.ComputeTagSize((int)7) + pb::CodedOutputStream.ComputeRawVarint32Size((uint)subsize) + subsize;
                }
            }
            if (HasType)
            {
                size += pb::CodedOutputStream.ComputeInt32Size(8, Type);
            }
            memoizedSerializedSize = size;
            return(size);
        }
コード例 #6
0
 /// <summary>
 /// 初期化処理
 /// </summary>
 void Start()
 {
     // コンポーネントの取得
     hitChecker   = GetComponent <HitChecker>();
     playerJump   = GetComponent <PlayerJump>();
     playerAttack = GetComponent <PlayerAttack>();
     playerSlide  = GetComponent <PlayerSlide>();
     playerCharge = GetComponent <PlayerCharge>();
     character    = GetComponent <Player>();
 }
コード例 #7
0
ファイル: GlideState.cs プロジェクト: Nagisa-Ogawa/Runbrella
 /// <summary>
 /// 初期化処理
 /// </summary>
 void Start()
 {
     // コンポーネントを取得
     playerGlide  = GetComponent <PlayerGlide>();
     character    = GetComponent <Player>();
     aerialState  = GetComponent <AerialState>();
     runState     = GetComponent <RunState>();
     downState    = GetComponent <DownState>();
     playerCharge = GetComponent <PlayerCharge>();
     playerAttack = GetComponent <PlayerAttack>();
 }
コード例 #8
0
 /// <summary>
 /// 初期化処理
 /// </summary>
 void Start()
 {
     // コンポーネントを取得
     playerJump        = GetComponent <PlayerJump>();
     playerCharge      = GetComponent <PlayerCharge>();
     playerAfterSlide  = GetComponent <PlayerAfterSlide>();
     playerAttack      = GetComponent <PlayerAttack>();
     playerAerial      = GetComponent <PlayerAerial>();
     playerSlide       = GetComponent <PlayerSlide>();
     playerRigidbody2D = GetComponent <Rigidbody2D>();
     character         = GetComponent <Player>();
 }
コード例 #9
0
    public override void GetHitByCharge(PlayerCharge charge, Vector3 chargeHitPoint)
    {
        if (!isCoreVulnerable)
        {
            return;
        }

        Debug.Log("boss enemy hit by charge.");

        charge.ShowHitParticles(chargeHitPoint);
        StartCoroutine(GetHitByChargeCoroutine());
    }
コード例 #10
0
//end merged
        public override bool IsInitialized()
        {
            foreach (ActivityRankInfo element in chargeRanksList)
            {
                if (!element.IsInitialized())
                {
                    return(false);
                }
            }
            foreach (ActivityRankInfo element in spendRanksList)
            {
                if (!element.IsInitialized())
                {
                    return(false);
                }
            }
            if (HasPlayerCharge)
            {
                if (!PlayerCharge.IsInitialized())
                {
                    return(false);
                }
            }
            if (HasPlayerSpend)
            {
                if (!PlayerSpend.IsInitialized())
                {
                    return(false);
                }
            }
            foreach (ActivityRankReward element in chargeRewardsList)
            {
                if (!element.IsInitialized())
                {
                    return(false);
                }
            }
            foreach (ActivityRankReward element in spendRewardsList)
            {
                if (!element.IsInitialized())
                {
                    return(false);
                }
            }
            return(true);
        }
コード例 #11
0
 private void Awake()
 {
     playerController = GetComponent <PlayerController>();
     chargeController = GetComponent <PlayerCharge>();
 }
コード例 #12
0
 // Start is called before the first frame update
 void Start()
 {
     playerMessageSystem = GetComponent <PlayerMessageSystem>();
     playerCharge        = GetComponent <PlayerCharge>();
 }
コード例 #13
0
 void Awake()
 {
     playerCharge = gameObject.GetComponent <PlayerCharge> ();
     playerCharge.setMax(maxCharge);
     spriteRenderer = gameObject.GetComponent <SpriteRenderer>();
 }
コード例 #14
0
        public override void WriteTo(pb::CodedOutputStream output)
        {
            int size = SerializedSize();

            if (HasOperate)
            {
                output.WriteInt32(1, Operate);
            }

            do
            {
                foreach (ActivityRankInfo element in chargeRanksList)
                {
                    output.WriteTag((int)2, pb::WireFormat.WireType.LengthDelimited);
                    output.WriteRawVarint32((uint)element.SerializedSize());
                    element.WriteTo(output);
                }
            }while(false);

            do
            {
                foreach (ActivityRankInfo element in spendRanksList)
                {
                    output.WriteTag((int)3, pb::WireFormat.WireType.LengthDelimited);
                    output.WriteRawVarint32((uint)element.SerializedSize());
                    element.WriteTo(output);
                }
            }while(false);
            {
                output.WriteTag((int)4, pb::WireFormat.WireType.LengthDelimited);
                output.WriteRawVarint32((uint)PlayerCharge.SerializedSize());
                PlayerCharge.WriteTo(output);
            }
            {
                output.WriteTag((int)5, pb::WireFormat.WireType.LengthDelimited);
                output.WriteRawVarint32((uint)PlayerSpend.SerializedSize());
                PlayerSpend.WriteTo(output);
            }

            do
            {
                foreach (ActivityRankReward element in chargeRewardsList)
                {
                    output.WriteTag((int)6, pb::WireFormat.WireType.LengthDelimited);
                    output.WriteRawVarint32((uint)element.SerializedSize());
                    element.WriteTo(output);
                }
            }while(false);

            do
            {
                foreach (ActivityRankReward element in spendRewardsList)
                {
                    output.WriteTag((int)7, pb::WireFormat.WireType.LengthDelimited);
                    output.WriteRawVarint32((uint)element.SerializedSize());
                    element.WriteTo(output);
                }
            }while(false);

            if (HasType)
            {
                output.WriteInt32(8, Type);
            }
        }
コード例 #15
0
 public virtual void GetHitByCharge(PlayerCharge charge, Vector3 chargeHitPoint)
 {
     charge.ShowHitParticles(chargeHitPoint);
     StartCoroutine(GetHitByChargeCoroutine());
 }