コード例 #1
0
 private void Start()
 {
     if (!KeyBufferManager.main)
     {
         KeyBufferManager.main = this;
     }
 }
コード例 #2
0
ファイル: SDManager.cs プロジェクト: MakiMakiSa/LiviOnGimmick
    // Start is called before the first frame update
    void Start()
    {
        if (!main)
        {
            main = this;
        }

        kb_L3 = KeyBufferManager.CreateKey();
        kb_B  = KeyBufferManager.CreateKey();

        rb       = GetComponent <Rigidbody>();
        animator = GetComponent <Animator>();

        AnmID_Defense    = Animator.StringToHash("isDefense");
        AnmID_isAnimated = Animator.StringToHash("isParticleAnimated");

        defaultDrag        = rb.drag;
        defaultAngularDrag = rb.angularDrag;

        renderers.AddRange(GetComponentsInChildren <Renderer>());
    }
コード例 #3
0
    // Start is called before the first frame update
    void Start()
    {
        if (!main)
        {
            main = this;
        }

        //アバターコンポ


        animLayer_impact = animator.GetLayerIndex("impact Layer");

        ikManager        = animator.GetComponent <PlayerIKManager>();
        breathingManager = animator.GetComponent <BreathingManager>();


        //ボールコンポ
        ballRB       = GetComponent <Rigidbody>();
        ballCollider = GetComponent <SphereCollider>();
        myContacts   = GetComponent <ContactManager>();
        wireManager  = GetComponent <WireManager>();



        //IK
        lookRotation               = new GameObject("lookRotation").transform;
        lookRotation.parent        = tAvatar;
        lookRotation.localPosition = Vector3.zero;
        lookForward               = new GameObject("lookForward").transform;
        lookForward.parent        = lookRotation;
        lookForward.localPosition = Vector3.forward;


        //キーバッファ
        key_B  = KeyBufferManager.CreateKey();
        key_R1 = KeyBufferManager.CreateKey();
        key_L2 = KeyBufferManager.CreateKey();
    }