Exemple #1
0
    void Awake()
    {
        BlendTree.Setup(this);

        _root            = BlendTree.GetNode("BlendNode_Root") as BlendNode;
        _fix             = BlendTree.GetNode("BlendNode_Fix") as BlendNode;
        _normalPositions = BlendTree.GetNode("BlendNode_NormalPositions") as BlendNode;

        _normalHitShake  = BlendTree.GetNode("StateNode_NormalHitShake") as CameraRigStateNode_Shake;
        _normalHurtShake = BlendTree.GetNode("StateNode_NormalHurtShake") as CameraRigStateNode_Shake;
        _scopeHitShake   = BlendTree.GetNode("StateNode_ScopeHitShake") as CameraRigStateNode_Shake;
        _scopeHurtShake  = BlendTree.GetNode("StateNode_ScopeHurtShake") as CameraRigStateNode_Shake;
    }