Beispiel #1
0
    protected override void FirstUpdate()
    {
        base.FirstUpdate();
        _sideAttacks[ 0 ] = GetAttackToPart( "Option1", 90, 1 );
        _sideAttacks[ 1 ] = GetAttackToPart( "Option2", 90, 1 );

        _sideAttacks[ 2 ] = GetAttackToPart( "Option3", 120, 1 );
        _sideAttacks[ 3 ] = GetAttackToPart( "Option4", 130, 1 );
        _sideAttacks[ 4 ] = GetAttackToPart( "Option5", 50, 1 );
        _sideAttacks[ 5 ] = GetAttackToPart( "Option6", 60, 1 );

        sideMoveL = GetMoveToPart( "Option1", true );
        sideMoveR = GetMoveToPart( "Option2", false );
    }
 float GetStartDirection(MZMove.RotationType rotType)
 {
     return ( rotType == MZMove.RotationType.CW )? -45 : 360 - 135;
 }
 float GetDestinationDirection(MZMove.RotationType rotType)
 {
     return ( rotType == MZMove.RotationType.CW )? 360 - 135 : -45;
 }