コード例 #1
0
ファイル: BagMouth.cs プロジェクト: jimmythechang/treasureBox
    private void snapSwordToMouth(Blade blade)
    {
        float bagAngle = transform.eulerAngles.z;

        Sword sword = blade.GetComponentInParent <Sword>();

        sword.lockSword(bagAngle, this);

        float distanceFromBagMouth = sword.calculateDistanceFromBagMouth();

        sword.setInitialDistanceFromBagMouth(distanceFromBagMouth);
        setSwordAndBagParent(sword);
    }